Comment 8 for bug 889423

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

Consider the following entries in /etc/network/interfaces:
#auto bond0
iface bond0 inet static
  address 10.191.62.2
  netmask 255.255.255.0
  broadcast 10.191.62.255
  bond-slaves none
  bond-primary eth2 eth3
  bond-mode 802.3ad
  bond-lacp_rate fast
  bond-miimon 100

#auto eth2
iface eth2 inet manual
  bond-master bond0
  bond-primary eth2 eth3
  bond-mode 802.3ad
  bond-lacp_rate fast
  bond-miimon 100

#auto eth3
iface eth3 inet manual
  bond-master bond0
  bond-primary eth2 eth3
  bond-mode 802.3ad
  bond-lacp_rate fast
  bond-miimon 100

If I reboot the system and manually start the bridge:
  # ifup bond0
  # ifup eth2
  # ifup eth3
  # ifconfig bond0
  bond0 Link encap:Ethernet HWaddr 00:1b:21:b7:21:ea
            inet addr:10.191.62.2 Bcast:10.191.62.255 Mask:255.255.255.0
            inet6 addr: fe80::21b:21ff:feb7:21ea/64 Scope:Link
            UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
            RX packets:31 errors:0 dropped:21 overruns:0 frame:0
            TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0
            RX bytes:3204 (3.2 KB) TX bytes:3940 (3.9 KB)

But, if instead I reverse the order:
  # ifup eth2
  # ifup eth3
  # ifup bond0
  # ifconfig bond0
  bond0 Link encap:Ethernet HWaddr 00:1b:21:b7:21:ea
            inet addr:10.191.62.2 Bcast:10.191.62.255 Mask:255.255.255.0
            inet6 addr: fe80::21b:21ff:feb7:21ea/64 Scope:Link
            UP BROADCAST MASTER MULTICAST MTU:1500 Metric:1
            RX packets:126 errors:0 dropped:126 overruns:0 frame:0
            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0
            RX bytes:15624 (15.6 KB) TX bytes:0 (0.0 B)

So, things work if the bond0 interface is ifup'd first, not last.