Thread (3 messages) flat view 3 messages, 3 authors, 2011-12-22

Re: Invalid Argument when adding a bond to a bridge

From: Stephen Hemminger <hidden>
Date: 2011-12-22 16:45:24
Also in: bridge

On Thu, 22 Dec 2011 08:25:54 -0600
Dyweni - NetDev [off-list ref] wrote:
 Hi All,

 I need some help figuring this one out... Whenever I try to add a bond 
 to a
 bridge, I get back an invalid argument error. I've confirmed this on
 3.2-rc6, 3.1.5, 3.0.13, and 2.6.39.4 (haven't checked earlier kernels).

 Here's my setup: 32bit KVM virtual machine with no network cards (... 
 -net
 none ... ).

 I created the bond with: echo "+x" > /sys/class/net/bonding_masters

 I created the bridge with: brctl addbr b

 I try to add the bond to the bridge with: brctl addif b x
The bonding device inherits its MAC address from the slave
devices. Therefore until the you add a slave to the bonding device
it's MAC address isn't set (all zeros). Bridging is not allowed
without a valid MAC address.

The solution is to fully configure the bonding device before adding
to the bridge.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help