In my setup, I have configured the container’s config to get a static IP. The IP shows up on the veth interface, lxc-ls -f, but it will mysteriously disappear around a minute after starting the container. I’m using lxc-net to setup lxcbr0 and veth pairs. I’m running lxc 3.1.0.
@brian is your container running a DHCP client that is periodically getting a dynamic IP from the DHCP server rather than keeping your manually assigned static IP?
@tomp The container isn’t running a DHCP client. I’ve also tried disabling dnsmasq and unplugging the Ethernet from the host machine, and the issue still persists. However, when I manually add the IP to the interface as root user(su) in the container, then the static IP will persist. If the container is started in privileged mode, then perhaps the static IP won’t disappear?