How assign the IP address sequentially?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/containers


[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux