Comment 24 for bug 889423

Revision history for this message
Albert Chin (bugs-ubuntu-vendor) wrote :

Tried adding the bond0 interface to a bridge but it's not in the "RUNNING" state:
  # cat /etc/network/interfaces
  ...
  auto bond0
  iface bond0 inet manual
    bond-mode 802.3ad
    bond-lacp_rate slow
    bond-miimon 100
    bond-updelay 200
    bond-slaves none
    post-up ip link set dev bond0 up
    post-down ip link set dev bond0 down

  auto eth2
  iface eth2 inet manual
    bond-master bond0

  auto eth3
  iface eth3 inet manual
    bond-master bond0

  auto br0
  iface br0 inet manual
    bridge_ports bond0
    bridge_stp off

  # ifconfig bond0
  bond0 Link encap:Ethernet HWaddr 00:1b:21:d3:f6:0b
            UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
            RX packets:231 errors:0 dropped:30 overruns:0 frame:0
            TX packets:772 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0
            RX bytes:17484 (17.4 KB) TX bytes:95288 (95.2 KB)

  # ifconfig br0
  br0 Link encap:Ethernet HWaddr 92:ee:88:d7:12:40
            UP BROADCAST MULTICAST MTU:1500 Metric:1
            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0
            RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Oddly, bond0 does not seem to be a part of br0:
  # brctl show
  bridge name bridge id STP enabled interfaces
  br0 8000.000000000000 no
  virbr0 8000.000000000000 yes

Do I need to add "up brctl addif br0 bond0" in my iface definition for br0? That would defeat the purpose of bridge_ports in the br0 iface definition.