[Lxc-users] How assign the IP address sequentially?

nishant mungse nishantmungse at gmail.com
Wed Dec 7 11:06:34 UTC 2011


Hi,

Thanks 4 reply dude.
It is working properly using this method, is there any other way because if
i have 1000 containers then each time i have to open each containers file
and edit that file which will definitely take much time????

Correct me if I am wrong.

On Wed, Dec 7, 2011 at 4:24 PM, lists.jc.michel at symetrie.com <
lists.jc.michel at symetrie.com> wrote:

> Hi,
>
>
> Le 7 déc. 2011 à 07:22, nishant mungse a écrit :
> > I want to assign the ip address of containers sequentially for eg::
> container1 ::195.168.206.1 container2::195.168.206.2 like this.
>
>
> I think you can do this simply by editing the files in your container once
> created :
> /var/lib/lxc/your-container-name/rootfs/etc/network/interfaces
>
> So build a script to create your container and edit its ip.

Hi,

Thanks 4 reply dude.
It is working properly using this method, is there any other way because if
i have 1000 containers then each time i have to open each containers file
and edit that file which will definitely take much time????

Correct me if I am wrong.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20111207/423b9d53/attachment.html>


More information about the lxc-users mailing list