Here's my working config on an X4600M2, FWIW (includes 802.1q vlan tagging)
This persists across reboots and/or if[up|down] br1

It avoids reliance on hotplug and any improper sequence errors by
scripting the module loading and interface initialization in the correct
order.

auto bond1
iface bond1 inet manual
    pre-up modprobe bonding mode=802.3ad ad_select=bandwidth downdelay=400 
miimon=100 lacp_rate=0 max_bonds=2 ; ifconfig bond1 up ;  ifconfig eth2 up ; 
ifconfig eth3 up
    post-up ifenslave bond1 eth2 eth3
    pre-down ifenslave -d bond1 eth2 eth3
    post-down ifconfig eth2 down ; ifconfig eth3 down ; ifconfig bond1 down

auto bond1.2
iface bond1.2 inet manual
    pre-up ifup bond1 ; modprobe 8021q
    post-down ifdown bond1
    vlan-raw-device bond1

auto br1
    iface br1 inet static
    address 192.168.1.101
    network 192.168.1.0
    netmask 255.255.1.0
    broadcast 192.168.1.255
    bridge_ports bond1.2
    bridge_fd 0
    bridge_hello 2
    bridge_maxage 12
    bridge_maxwait 0
    bridge_stp on
    pre-up ifup bond1.2

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/574456

Title:
  hotplug-style bonding does not work after reboot - "service networking
  restart" needed to get it working

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to