<div dir="ltr">I am using lxc to create around 1000 containers.<div style>I could get IP allocated to first 254 containers and not after that.</div><div style>I changed IP mask of 'lxcbr0' and made appropriate changes in /etc/default/lxc-net</div>
<div style><br></div><div style>USE_LXC_BRIDGE="true"<br></div><div style><div>LXC_BRIDGE="lxcbr0"</div><div>LXC_ADDR="10.0.3.1"</div><div>LXC_NETMASK="255.255.0.0"</div><div>LXC_NETWORK="<a href="http://10.0.3.0/16">10.0.3.0/16</a>"</div>
<div><div>LXC_DHCP_RANGE="10.0.3.2,10.0.255.254"</div><div>LXC_DHCP_MAX="65000"</div></div><div><br></div><div><br></div><div><br></div><div style>Now I am not able to ping outside world from inside container, which was possible with "255.255.255.0" netmask.</div>
<div style>Can somebody help me with this.<br></div><div style>Note : I can get all my containers the IP address with new netmask.</div><div style>Here is my 'route -n ' o/p on host.</div><div style><br></div><div style>
<div>root@avatar:~# route -n</div><div>Kernel IP routing table</div><div>Destination Gateway Genmask Flags Metric Ref Use Iface</div><div>0.0.0.0 192.168.100.1 0.0.0.0 UG 0 0 0 eth0</div>
<div>10.0.0.0 0.0.0.0 255.255.0.0 U 0 0 0 lxcbr0</div><div>192.168.100.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0</div><div>192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0</div>
<div><br></div></div><div style><br></div><div style>The o/p inside container is -</div><div style><br></div><div style><div>root@avatar:~# route -n</div><div>Kernel IP routing table</div><div>Destination Gateway Genmask Flags Metric Ref Use Iface</div>
<div>0.0.0.0 192.168.100.1 0.0.0.0 UG 0 0 0 eth0</div><div>10.0.0.0 0.0.0.0 255.255.0.0 U 0 0 0 lxcbr0</div><div>192.168.100.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0</div>
<div>192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0</div><div><br></div></div><div style><br></div><div style><br></div><div style>Regards,</div><div style>Abhijit.</div><div style><br></div>
</div></div>