Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I bonded eth0, eth1, eth2 and eth3 of my server to create a single bond0 interface using the ifenslave package. Now I wish to create multiple Virtual machines on this server in order to set-up a cluster. These VMs require to have a 'bridged' network connection.

However, the Virtual machine software I am using (http://virt-manager.org/) says that bond0 is not bridged.

How do I make it bridged?

share|improve this question

2 Answers 2

You'll need the package bridge-utils to set up bridging.

I found an example configuration file (found here):

# /etc/network/interfaces
auto lo
iface lo inet loopback

# The bonded network interface
auto bond0
iface bond0 inet manual
    bond-slaves none
    bond-mode   802.3ad
    bond-miimon 100

# Enslave all the physical interfaces
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 bond0

# Configure the bridging interface
auto br0
iface br0 inet static
    address 10.0.0.10
    netmask 255.255.255.0
    gateway 10.0.0.1
    bridge-ports  bond0
    bridge-fd     9
    bridge-hello  2
    bridge-maxage 12
    bridge-stp    off

Simply modify the address/netmask to your needs and it should work nicely.

share|improve this answer

You may want to consider not using bridged bonds, KVM admit theres a bug, better to add the two physical interfaces to the VM and bond them inside the VM.

Source: http://www.linux-kvm.org/page/HOWTO_BONDING#Problem_with_Bridge_.2B_Bonding

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.