[lxc-users] LXD static IP in container

Mike Wright nobody at nospam.hostisimo.com
Sat Feb 8 21:32:50 UTC 2020


On 2/6/20 8:29 AM, Michael Eager wrote:
> Thanks.  I had tried this, but it didn't appear to work.  I just tried
> it again and got it to work.
> 
> I assume that I can move the eth0 definition back to the profile,
> without the ipv4.address specification.
https://lxd.readthedocs.io/en/latest/instances/#type-nic

Do searches on dhcp and static.

When dealing with device type=nic address assignment depends on nic type:

if nic type=bridged ipv4.address is assigned via DHCP
if nic type=routed  ipv4.address is assigned as static

Maybe that will clear up some of the confusion.

:m


More information about the lxc-users mailing list