[lxc-users] How to increase IP range for containers.
Fajar A. Nugraha
list at fajar.net
Fri May 23 11:18:45 UTC 2014
On Fri, May 23, 2014 at 4:50 PM, Abhijit Taware <
abhijit.taware at coriolis.co.in> wrote:
> 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.
>
Are you familiar with TCP/IP basic, e.g.
http://en.wikipedia.org/wiki/Subnetwork ? If not, you should spend some
time learning it.
At first glance, this should work
LXC_ADDR="10.0.0.1"
LXC_NETMASK="255.255.0.0"
LXC_NETWORK="10.0.0.0/16"
LXC_DHCP_RANGE="10.0.0.2,10.0.255.254"
Your setup probably broke iptables script since 10.0.3.0/16 is not a valid
network.
--
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140523/6796d9ab/attachment.html>
More information about the lxc-users
mailing list