I have to NIC to bond using the 802.3ad mode. That bond is to be used with VLAN. When started the bond0 interface and my two NICs should have the same MAC address but they do not.
From my reading I should have :
===
auto eth0
iface eth0 inet manual
bond-master bond0
auto eth1
iface eth1 inet manual
bond-master bond0
I was unable to make it work as it should.
My setup is as follow :
I have to NIC to bond using the 802.3ad mode. That bond is to be used with VLAN. When started the bond0 interface and my two NICs should have the same MAC address but they do not.
From my reading I should have :
===
auto eth0
iface eth0 inet manual
bond-master bond0
auto eth1
iface eth1 inet manual
bond-master bond0
auto bond0
bond-updelay 200
bond-downdelay 500
iface bond0 inet manual
bond-slaves none
bond-mode 802.3ad
bond-miimon 100
auto xenbr0
bridge_ maxwait 10
bridge_ ports bond0.10
iface xenbr0 inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
bridge_stp on
===
When doing that setup the bond0 interface comes up but the MAC address does not match.
The only way I had it to work as expected is not to "auto" eth0 and eth1 and use the "up" stanzas to bring those interface inside the bond :
===
iface eth0 inet manual
bond-master bond0
iface eth1 inet manual
bond-master bond0
auto bond0
bond-updelay 200
bond-downdelay 500
iface bond0 inet manual
up ifup eth0
up ifup eth1
bond-slaves none
bond-mode 802.3ad
bond-miimon 100
auto xenbr0
bridge_ maxwait 10
bridge_ ports bond0.10
iface xenbr0 inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
bridge_stp on
===
I tried the "allow-bond0 ethX" stanzas instead of "auto ethX" but it does not seem to work at all.
I tried to reproduce the bond0 configuration parameters inside each NIC but it does not work either.
Now the interface bond0 start with a 60 seconds waiting time at boot (which I reduced in the scripts to 10 seconds).
===
So the event based startup of the bond is broken. Could we have it working once and for all?