[Lxc-users] Static IP in containers

Robin Monjo robin.monjo at applidget.com
Thu Nov 7 15:27:26 UTC 2013


Hello,

I'm using LXC 0.7.5 on ubuntu 12.04 with the default settings (lxbr0, dnsmasq …). To have a static IP in my containers I used to add a line in the conf file, i.e:

lxc.network.ipv4 = 10.0.3.4/24

Unfortunately, this don't really work anymore. When I start my container I sometimes have an IP randomly set (dhcp) and sometimes the one I actually specified in the conf file.

Any other way to set a static IP ?

Kind regards,
Robin



More information about the lxc-users mailing list