[lxc-users] Centos: how to specify static ip address to container

Claudio Kuenzler ck at claudiokuenzler.com
Thu Feb 13 08:39:36 UTC 2014


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 :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140213/917597e2/attachment.html>


More information about the lxc-users mailing list