Comment 9 for bug 574456

Revision history for this message
Shawn Teague (happynix) wrote :

Scott's post didn't quite work for me.
But I have Bonding interfaces, VLAN segmentation of bond0, bridging of bond0.<vlans>
Everything looked OK on reboot but no actual networking happened, untill I would do a networking restart.
All this is on Ubuntu Server 11.04

What did work for me (YMMV)

Create a /etc/modprobe.d/bonding.conf
****
alias bond0 bonding
options bonding mode=802.3ad ad_select=bandwidth max_bonds=1 lacp_rate=slow miimon=100 use_carrier=1 downdelay=200 updelay=200
****

Here is my final /etc/interfaces
****
auto lo
iface lo inet loopback

auto bond0
iface bond0 inet manual
    bond-slaves eth0 eth1

auto eth0
allow-bond0 eth0
iface eth0 inet manual

auto bond0.100
iface bond0.100 inet manual

auto bond0.30
iface bond0.30 inet manual

auto bond0.31
iface bond0.31 inet manual

auto bond0.40
iface bond0.40 inet manual

auto br100-CONTROL
iface br100-CONTROL inet static
    # Static assign the IP, netmask, default gateway.
    address 10.9.4.72
    netmask 255.255.255.0
    gateway 10.9.4.1
    # Bind one or more interfaces to the bridge.
    bridge_ports bond0.100
    # Tune the bridge for a single interface.
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

# Create a bridged interface.
auto br30-DMZ
iface br30-DMZ inet manual
    bridge_ports bond0.30
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

# Create a bridged interface.
auto br31-HOSTED
iface br31-HOSTED inet manual
    bridge_ports bond0.31
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

# Create a bridged interface.
auto br40-PRODUCTION
iface br40-PRODUCTION inet manual
    post-up ifconfig $IFACE up
    pre-down ifconfig $IFACE down
    bridge_ports bond0.40
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

****