[lxc-users] How to increase IP range for containers.
Abhijit Taware
abhijit.taware at coriolis.co.in
Fri May 23 09:50:59 UTC 2014
I am using lxc to create around 1000 containers.
I could get IP allocated to first 254 containers and not after that.
I changed IP mask of 'lxcbr0' and made appropriate changes in
/etc/default/lxc-net
USE_LXC_BRIDGE="true"
LXC_BRIDGE="lxcbr0"
LXC_ADDR="10.0.3.1"
LXC_NETMASK="255.255.0.0"
LXC_NETWORK="10.0.3.0/16"
LXC_DHCP_RANGE="10.0.3.2,10.0.255.254"
LXC_DHCP_MAX="65000"
Now I am not able to ping outside world from inside container, which was
possible with "255.255.255.0" netmask.
Can somebody help me with this.
Note : I can get all my containers the IP address with new netmask.
Here is my 'route -n ' o/p on host.
root at avatar:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
0.0.0.0 192.168.100.1 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 0.0.0.0 255.255.0.0 U 0 0 0
lxcbr0
192.168.100.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0
virbr0
The o/p inside container is -
root at avatar:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
0.0.0.0 192.168.100.1 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 0.0.0.0 255.255.0.0 U 0 0 0
lxcbr0
192.168.100.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0
virbr0
Regards,
Abhijit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140523/4fac660f/attachment.html>
More information about the lxc-users
mailing list