public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@vyatta•com>
To: <xmCM8KtKk25K@dyweni•com>
Cc: NetDev <netdev@vger•kernel.org>,
	Bridge <bridge@lists•linux-foundation.org>,
	Bonding Devel <bonding-devel@lists•sourceforge.net>
Subject: Re: Invalid Argument when adding a bond to a bridge
Date: Thu, 22 Dec 2011 08:45:21 -0800	[thread overview]
Message-ID: <20111222084521.579beeae@nehalam.linuxnetplumber.net> (raw)
In-Reply-To: <b8003b95089e177b00bc7db44700757a@pl1.haspere.com>

On Thu, 22 Dec 2011 08:25:54 -0600
Dyweni - NetDev <xmCM8KtKk25K@dyweni•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.

  parent reply	other threads:[~2011-12-22 16:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-22 14:25 Invalid Argument when adding a bond to a bridge Dyweni - NetDev
2011-12-22 14:35 ` David Lamparter
2011-12-22 16:45 ` Stephen Hemminger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-12-22 14:08 Dyweni - NetDev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111222084521.579beeae@nehalam.linuxnetplumber.net \
    --to=shemminger@vyatta$(echo .)com \
    --cc=bonding-devel@lists$(echo .)sourceforge.net \
    --cc=bridge@lists$(echo .)linux-foundation.org \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=xmCM8KtKk25K@dyweni$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox