When deploying KVM hypervisors on Ubuntu, combining 802.3ad LACP link aggregation (bond0, mode 4) with a virtualization network bridge (br0) requires binding the physical NICs to the bond master first and bridging bond0 rather than the raw interfaces. Below is a tested /etc/network/interfaces configuration:
Printout from /etc/network/interfaces
cli
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# Child Networking interfaces
auto eth0
iface eth0 inet manual
bond-master bond0
bond-primary eth0
auto eth1
iface eth1 inet manual
bond-master bond0
#Bond mode load-balancing LACP fast
auto bond0
iface bond0 inet manual
bond-mode 4
bond-miimon 1000
bond-lacp-rate 1
bond-slaves eth0 eth1
#Bridged networking interfaces
auto br0
iface br0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8
dns-search nertwork.com
bridge_ports bond0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
Stacking
br0on top of an 802.3adbond0(bond-mode 4,bond-lacp-rate 1,bond-miimon 100) withxmit_hash_policy layer3+4gives rock-solid throughput for KVM guest VLAN trunks.Setting
bridge_stp offandbridge_fd 0on the KVM host bridge is essential—otherwise the 15-second forwarding delay causes guest DHCP timeouts during live migration.