[lxc-users] [Solved] Re: How to get rid of pesky extra dhcp IP
David Favor
david at davidfavor.com
Mon Apr 16 13:13:23 UTC 2018
jjs - mainphrame wrote:
> Confirmed, removing netplan solves the problem.
>
> Thanks for the hint.
>
> Jake
>
> On Sat, Apr 14, 2018 at 10:39 AM, jjs - mainphrame <jjs at mainphrame.com
> <mailto:jjs at mainphrame.com>> wrote:
>
> Thanks for the clue. Looking into this.
>
> Jake
>
> On Sat, Apr 14, 2018 at 10:31 AM, Sergiusz Pawlowicz
> <sergiusz at pawlowicz.name <mailto:sergiusz at pawlowicz.name>> wrote:
>
> it's not a bug, it is a feature
>
> man netplan
Netplan doesn't get rid of the "pesky DHCP IP".
Currently there's a bug in ifconfig, which fails to report the DHCP IP.
The only way (till the ifconfig bug is fixed) you can view all IPs via...
ip addresses (container level)
lxc list (machine level)
Likely good for you to read many posts about the purpose of the DHCP IP
inside containers.
If you do destroy this IP (in netplan - rm -f /etc/netplan/50*), then
you'll produces subtle packet routing breakage when trying to communicate
between containers (yes even if they have public IPs).
More information about the lxc-users
mailing list