Hi Claudio, Thanks for answering my question. That's what I did now, and it requires a few more changes in the container. That's why I want to leverage the dnsmasq to reserve ip address for specific host/mac address so that all the config are in a central place.
Is it expected that no config file is given to dnsmasq (--conf-file parameter of the dnsmasq is empty in the start command)? On Thu, Feb 13, 2014 at 4:39 PM, Claudio Kuenzler <[email protected]>wrote: > > > I run lxc container on centos and want to my container to start with a >> static IP address. >> > > You can set the static IP directly in the lxc's config file: > > lxc.network.ipv4 = 192.168.0.11/24 > > I don't run LXC on CentOS though, so I'm not 100% sure if it'll work. Try > it :) > > _______________________________________________ > lxc-users mailing list > [email protected] > http://lists.linuxcontainers.org/listinfo/lxc-users > -- Thanks -Mingjiang
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
