Linux bridge redundancy

bridgelinuxnetworkingstpswitch

I make heavy use of Linux Bridges (brctl) as I have a Xen environment. At the minute, only one physical NIC is connected to the bridge (There are many virtual NICs for the Xen VMs though). In order to get some redundancy working, what steps would I need to take to add another physical NIC to the bridge? This second NIC will be connected to a different switch. Do I need to run a cable between the 2 switches and enable STP?

Please note that the NIC do not have IP assigned to them (however the bridges do).

I do know the commands to add NICs to bridges; my question related to the redundancy aspect of it.

Best Answer

I think the answer is that you would need to create a bonded interface using a failover configuration where whatever NIC work get's the connection. Then you can make your bridges on top of the bond interfaces instead of directly on the nics.