Hi,<br><br>I want to assign the ip address of containers sequentially for eg:: container1 ::195.168.206.1 container2::195.168.206.2 like this. <br><br>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 ::<br>
<br>CONF FILE::<br><br>lxc.utsname = ubuntu<br>lxc.mount = /home/nishant/ubuntu.fstab<br><br>lxc.pts = 1024<br><br>lxc.tty = 4<br>lxc.cgroup.devices.deny = a<br><br># /dev/null and zero<br>lxc.cgroup.devices.allow = c 1:3 rwm<br>
lxc.cgroup.devices.allow = c 1:5 rwm<br># consoles<br>lxc.cgroup.devices.allow = c 5:1 rwm<br>lxc.cgroup.devices.allow = c 5:0 rwm<br>lxc.cgroup.devices.allow = c 4:0 rwm<br>lxc.cgroup.devices.allow = c 4:1 rwm<br><br># /dev/{,u}random<br>
lxc.cgroup.devices.allow = c 1:9 rwm<br>lxc.cgroup.devices.allow = c 1:8 rwm<br>lxc.cgroup.devices.allow = c 136:* rwm<br>lxc.cgroup.devices.allow = c 5:2 rwm<br><br># rtc<br>lxc.cgroup.devices.allow = c 254:0 rwm<br><br>
# <<<< ADD THOSE LINES<br><br>lxc.network.type = veth<br>lxc.network.flags = up<br><br><br>lxc.network.link = br0<br><a href="http://lxc.network.name">lxc.network.name</a> = eth0<br>lxc.network.ipv4 = <a href="http://192.168.206.1/24">192.168.206.1/24</a><br>
lxc.cgroup.cpuset.cpus=0-1,3<br><br><br><br><br>What are changes to be done in order to get the address sequentially?<br><br>Please help me ASAP.<br><br>Regards,<br>Nishant <br>