[Lxc-users] How assign the IP address sequentially?
nishant mungse
nishantmungse at gmail.com
Wed Dec 7 06:22:44 UTC 2011
Hi,
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 have taken out my network cable I think that means DHCP is out of
picture, but when I start the container it gets ipv6 address and not ipv4
address, my conf file contents are ::
CONF FILE::
lxc.utsname = ubuntu
lxc.mount = /home/nishant/ubuntu.fstab
lxc.pts = 1024
lxc.tty = 4
lxc.cgroup.devices.deny = a
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm
# <<<< ADD THOSE LINES
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.name = eth0
lxc.network.ipv4 = 192.168.206.1/24
lxc.cgroup.cpuset.cpus=0-1,3
What are changes to be done in order to get the address sequentially?
Please help me ASAP.
Regards,
Nishant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20111207/f6d5b08e/attachment.html>
More information about the lxc-users
mailing list