Invalid Argument when adding a bond to a bridge

3 messages, 3 authors, 2011-12-22 · open the first message on its own page

Invalid Argument when adding a bond to a bridge

From: Dyweni - NetDev <hidden>
Date: 2011-12-22 14:25:54

 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

-- 
 Thanks,
 Dyweni

Re: Invalid Argument when adding a bond to a bridge

From: David Lamparter <hidden>
Date: 2011-12-22 14:36:03

Add an interface to the bond, then add the bond to the bridge.

bond without interface = 00:00:00:00:00:00 MAC = invalid.

On Thu, Dec 22, 2011 at 08:25:54AM -0600, Dyweni - NetDev wrote:
 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

Re: Invalid Argument when adding a bond to a bridge

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

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