From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 22 Dec 2011 08:45:21 -0800 From: Stephen Hemminger Message-ID: <20111222084521.579beeae@nehalam.linuxnetplumber.net> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] Invalid Argument when adding a bond to a bridge List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xmCM8KtKk25K@dyweni.com Cc: NetDev , Bridge , Bonding Devel On Thu, 22 Dec 2011 08:25:54 -0600 Dyweni - NetDev 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. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: Invalid Argument when adding a bond to a bridge Date: Thu, 22 Dec 2011 08:45:21 -0800 Message-ID: <20111222084521.579beeae@nehalam.linuxnetplumber.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: NetDev , Bridge , Bonding Devel To: Return-path: Received: from mail.vyatta.com ([76.74.103.46]:48478 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753195Ab1LVQpY (ORCPT ); Thu, 22 Dec 2011 11:45:24 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 22 Dec 2011 08:25:54 -0600 Dyweni - NetDev 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.