[Lxc-users] lxcbr0 versus virbr0 (Ubuntu)

Ulli Horlacher framstag at rus.uni-stuttgart.de
Thu Nov 8 16:58:52 UTC 2012


Prologue: I run LXC successful for nearly 2 years on Ubuntu 10.04, using
veth / br0. Every container has its own IP address, no NAT. I run
production services like http://fex.rus.uni-stuttgart.de/ on it, rocksolid.

I have now set up second server with Ubuntu 12.04 and there have changed a
lot of things, starting with networking.

Reading https://help.ubuntu.com/12.04/serverguide/lxc.html it says
one can use lxcbr0 or virbr0 for bridging, but without further explanation.

What is "better"? Or is lxcbr0 only for NAT?
Is virbr0 the successor of br0?
Probably I am missing some basic documentation...

The new server has six GbE interfaces and I have set up "ethernet bonding":
three real interfaces build one virtual interface. 

I have successfully assigned a single test-IP to bond1:

root at vms3:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         129.69.202.142  0.0.0.0         UG    100    0        0 bond0
10.0.3.0        0.0.0.0         255.255.255.0   U     0      0        0 lxcbr0
129.69.1.0      0.0.0.0         255.255.255.0   U     0      0        0 bond1
129.69.202.128  0.0.0.0         255.255.255.240 U     0      0        0 bond0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 bond0

(lxcbr0 was automaticaly started when I installed lxc)

How shall I continue?
Binding which bridge type how to bond1?


Below is my current network setup:

root at vms3:~# cat /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual
        bond-master bond0

auto eth1
iface eth1 inet manual
        bond-master bond0

auto eth2
iface eth2 inet manual
        bond-master bond0

auto eth3
iface eth3 inet manual
        bond-master bond1

auto eth4
iface eth4 inet manual
        bond-master bond1

auto eth5
iface eth5 inet manual
        bond-master bond1

auto bond0
iface bond0 inet static
        address 129.69.202.131
        netmask 255.255.255.240
        network 129.69.202.128
        broadcast 129.69.202.143
        gateway 129.69.202.142
        bond-mode balance-rr
        bond-miimon 100
        bond-slaves none

auto bond1
iface bond1 inet static
        #up ifconfig bond1 up
        address 129.69.1.42
        netmask 255.255.255.0
        network 129.69.1.0
        broadcast 129.69.1.255
        bond-mode balance-rr
        bond-miimon 100
        bond-slaves none



-- 
Ullrich Horlacher              Informationssysteme und Serverbetrieb
Rechenzentrum IZUS/TIK         E-Mail: horlacher at rus.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-68565868
Allmandring 30a                Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.rus.uni-stuttgart.de/
REF: <20121108165852.GE23626 at rus.uni-stuttgart.de>




More information about the lxc-users mailing list