<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Dec 20, 2016 at 3:07 AM, Andrey Repin <span dir="ltr"><<a href="mailto:anrdaemon@yandex.ru" target="_blank">anrdaemon@yandex.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Greetings, mierdatutis mi!<br>
<span><br>
> Hi,<br>
> I've configured a container with ubuntu and my host with ubuntu also. My<br>
> idea is that they are in same lan with statics ip's.<br>
> For these I've configured macvlan.<br>
<br>
</span>I don't see, how did you configure macvlan on host.<br><br></blockquote><div><br></div><div>+1.</div><div><br></div><div>How you configure <span style="font-size:12.8px">mvlan0 matters.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">What I did in my host, is create a macvlan interface for the host, and move host's eth0 IP address there.</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">relevant sections:</span></div><div><span style="font-size:12.8px">### /etc/network/interfaces</span></div><div><div><span style="font-size:12.8px">auto eth0</span></div><div><span style="font-size:12.8px">iface eth0 inet manual</span><br></div><div><span style="font-size:12.8px">        # address moved to macvlan-0</span></div><div><span style="font-size:12.8px">        up ip link add link eth0 v-0 type macvlan mode bridge || true</span></div></div><div><span style="font-size:12.8px">source /etc/network/interfaces.d/*.cfg</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">### /etc/network/interfaces.d/v-0.cfg</span></div><div><span style="font-size:12.8px">allow-hotplug v-0</span></div><div><span style="font-size:12.8px">iface v-0 inet static</span></div><div><span style="font-size:12.8px">        address X.X.X.X/24</span></div><div><span style="font-size:12.8px">        gateway Y.Y.Y.Y</span></div><div><span style="font-size:12.8px">        dns-nameservers A.A.A.A B.B.B.B</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">### from "lxc config show container_name"</span></div><div><div><span style="font-size:12.8px">devices:</span></div><div><span style="font-size:12.8px">  eth0:</span></div><div><span style="font-size:12.8px">    name: eth0</span></div><div><span style="font-size:12.8px">    nictype: macvlan</span></div><div><span style="font-size:12.8px">    parent: eth0</span></div><div><span style="font-size:12.8px">    type: nic</span></div></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">So I use host eth0 (now without IP, as its ip is moved to v-0, which is a macvlan interface) as "parent" in lxd (this should be "lxc.network.link" in lxc). If you have problems with flockport's guide, try my setup.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">-- </span></div><div><span style="font-size:12.8px">Fajar</span></div></div></div></div>