[Lxc-users] appropriate architecture for two sets of containers on one host

Fajar A. Nugraha list at fajar.net
Thu Mar 14 06:25:37 UTC 2013


On Thu, Mar 14, 2013 at 5:15 PM, Mike <sourceforge at good-with-numbers.com>wrote:

> > iface eth1.17 inet static
> >         address 0.0.0.0
> >         netmask 0.0.0.0
> >
> > auto br1.17
> > iface br1.17 inet manual
> >         bridge_ports eth1.17
>
> Doing that (on br1.18), the second gateway goes away:
>
> ---------------------------------------------
> host$ ip route show
> 192.168.17.0/24 dev br1.17  proto kernel  scope link  src 192.168.17.2
> default via 192.168.17.1 dev br1.17
> ---------------------------------------------
>
> But the line
>
> 192.168.18.0/24 dev br1.18  proto kernel  scope link  src 192.168.18.2
>
> is gone too.  That disturbs me, but I don't have traffic on that bridge
> to test with yet.
>

Remember the L2 switch configuration I mentioned earlier? That is normal.

The only time you need to have an IP address on the host bridge is if you
want the host to communicate directly to the containers. But if you have an
external router (e.g. 192.168.18.1, which can also connect to
192.168.17.0/24), then your host can still communicate with the container,
even when the host itself does not have an IP address in 192.168.18.0/24.

-- 
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130314/3765e887/attachment.html>


More information about the lxc-users mailing list