lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20111222084521.579beeae@nehalam.linuxnetplumber.net>
Date:	Thu, 22 Dec 2011 08:45:21 -0800
From:	Stephen Hemminger <shemminger@...tta.com>
To:	<xmCM8KtKk25K@...eni.com>
Cc:	NetDev <netdev@...r.kernel.org>,
	Bridge <bridge@...ts.linux-foundation.org>,
	Bonding Devel <bonding-devel@...ts.sourceforge.net>
Subject: Re: Invalid Argument when adding a bond to a bridge

On Thu, 22 Dec 2011 08:25:54 -0600
Dyweni - NetDev <xmCM8KtKk25K@...eni.com> 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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ