You probably forgot to update your iptables masquerading rules? What's your output of `iptables-save`?
Florian Am 23.05.2014 11:50, schrieb Abhijit Taware: > 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 <http://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@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@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. > > > > _______________________________________________ > lxc-users mailing list > lxc-users@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-users > _______________________________________________ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users