<div dir="ltr">Thanks Simos,<br><br>The host has a bridge, br0, but not an lxc-specific one (USE_LXC_BRIDGE="false" in /etc/default/lxc-net)<br><br>The 192.168.111 range is from the pool on the local dhcp box. However, this container is configured to use a static IP in /etc/network/interfaces:<div>--</div><div><div># interfaces(5) file used by ifup(8) and ifdown(8)</div><div># Include files from /etc/network/interfaces.d:</div><div># source-directory /etc/network/interfaces.d</div><div><br></div><div>auto eth0</div><div>iface eth0 inet static</div><div> address 192.168.111.44</div><div> netmask 255.255.255.0</div><div> gateway 192.168.111.1</div><div> dns-nameservers 192.168.111.1</div><div> dns-search <a href="http://mainphrame.net">mainphrame.net</a></div><div>--</div><div><br></div><div>I'm not seeing where a dhcp address is being requested for this container. Is there some systemd magic going on behind the scenes?<br></div></div><div><br></div><div>Jake<br><br><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 9, 2018 at 11:36 PM, Simos Xenitellis <span dir="ltr"><<a href="mailto:simos.lists@googlemail.com" target="_blank">simos.lists@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">These 192.168.111.x IP addresses are not LXD default private IP addresses.<br>
Have you configured a bridge or a macvlan?<br>
<br>
Simos<br>
<div><div class="h5"><br>
On Sat, Apr 7, 2018 at 11:16 PM, jjs - mainphrame <<a href="mailto:jjs@mainphrame.com">jjs@mainphrame.com</a>> wrote:<br>
> Greetings,<br>
><br>
> Running lxd-3.0.0 on ubuntu 18.04 beta<br>
><br>
> I've set up a couple of new 16.04 cts and they act as I expect.<br>
><br>
> I set up an 18.04 ct and a persistent unwanted dhcp IP appears in the lxc<br>
> list:<br>
><br>
> root@ronnie:~# lxc list<br>
> +-----------+---------+-------<wbr>-----------------+------+-----<wbr>-------+-----------+<br>
> | NAME | STATE | IPV4 | IPV6 | TYPE |<br>
> SNAPSHOTS |<br>
> +-----------+---------+-------<wbr>-----------------+------+-----<wbr>-------+-----------+<br>
> | dbserv111 | RUNNING | 192.168.111.221 (eth0) | | PERSISTENT | 0<br>
> |<br>
> +-----------+---------+-------<wbr>-----------------+------+-----<wbr>-------+-----------+<br>
> | kangal | RUNNING | 192.168.111.44 (eth0) | | PERSISTENT | 0<br>
> |<br>
> | | | 192.168.111.239 (eth0) | | |<br>
> |<br>
> +-----------+---------+-------<wbr>-----------------+------+-----<wbr>-------+-----------+<br>
> | mg111 | RUNNING | 192.168.111.222 (eth0) | | PERSISTENT | 0<br>
> |<br>
> +-----------+---------+-------<wbr>-----------------+------+-----<wbr>-------+-----------+<br>
><br>
> However, inside the 18.04 container (kangal), only the static IP is listed:<br>
> root@kangal:~# ifconfig<br>
> eth0: flags=4163<UP,BROADCAST,<wbr>RUNNING,MULTICAST> mtu 1500<br>
> inet 192.168.111.44 netmask 255.255.255.0 broadcast<br>
> 192.168.111.255<br>
> inet6 fe80::216:3eff:fef3:857e prefixlen 64 scopeid 0x20<link><br>
> ether 00:16:3e:f3:85:7e txqueuelen 1000 (Ethernet)<br>
> RX packets 80658 bytes 97973222 (97.9 MB)<br>
> RX errors 0 dropped 0 overruns 0 frame 0<br>
> TX packets 56964 bytes 5320056 (5.3 MB)<br>
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>
><br>
> lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536<br>
> inet 127.0.0.1 netmask 255.0.0.0<br>
> inet6 ::1 prefixlen 128 scopeid 0x10<host><br>
> loop txqueuelen 1000 (Local Loopback)<br>
> RX packets 1400 bytes 115581 (115.5 KB)<br>
> RX errors 0 dropped 0 overruns 0 frame 0<br>
> TX packets 1400 bytes 115581 (115.5 KB)<br>
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0<br>
><br>
> root@kangal:~#<br>
><br>
> However I can ssh to this dhcp IP and gain access to the box.<br>
><br>
> Any clues as to how to get rid of this unwanted extra IP?<br>
><br>
> Jake<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a><br>
______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a></blockquote></div><br></div>