How to create a bridge interface using a NIC bond

The following setup works fine on a Debian Lenny system. Notice also that the same setup on a Ubuntu 9.04 server causes a kernel panic!

The machine is a SUN blade server with two NICs. Each NIC is connected to a different switch in a redundant manner. These are the contents of the /etc/network/interfaces file:

auto lo
iface lo inet loopback

auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_mode active-backup

auto br0
iface br0 inet static
bridge_ports bond0

Christodoulos Fragoudakis
 chfrag AT
  chfrag AT
Infinite loops around computer science, programming, system administration and teaching.