I created a Fedora 30 container on a CentOS 7 host. I’ve assigned it a static IP address in the config file:
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.ipv4 = 192.168.20.7/24
lxc.network.ipv4.gateway = 192.168.20.1
lxc.network.hwaddr = 00:16:3e:aa:61:34
When I run the container, eth0 has the correct IP address, but also has another IP address which appears to be assigned by DHCP:
lxc-info -n wiki
I can ping both IP addresses from other systems on the network.
How can I prevent the container from getting an IP address from DHCP?