Dear Nishant,

why do you not to use DHCP with a static configurations for this hosts?

If you realy don't rely on DHCP, you may use something like

        lxc-start ... -n $CONTAINERNAME  -s 
lxc.network.ipv4=193.163.195.${CONTAINERNAME#container}

for the containerN startup.

Guido

>-----Original Message-----
>From: nishant mungse [mailto:nishantmun...@gmail.com]
>Sent: Friday, December 02, 2011 9:11 AM
>To: lxc-users@lists.sourceforge.net; contain...@lists.linux-foundation.org
>Subject: [Lxc-users] How assign the IP address of containers sequentially.
>
>Hi,
>
>I want the ip address to be assigned in order as the containers are started 
>and not assigned by DHCP. For example ::
>container1:: 193.163.195.01,container2:: 193.163.195.02 like wise if there is 
>container30 :: 193.163.195.30, this should be its ip
>address.
>
>What are changes that are to done in conf file of lxc so as to get this kind 
>of address?
>
>Plz help me ASAP.
>
>Regards,
>Nishant Mungse


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to