From: Stephen Hemminger <shemminger@vyatta.com>
To: Daniel Robbins <drobbins@funtoo.org>
Cc: bridge@lists.linux-foundation.org, "Pavel V. Emelianov" <xemul@sw.ru>
Subject: Re: [Bridge] 2.6.27: persistent MAC assignment to bridge not working
Date: Fri, 8 May 2009 20:42:33 -0700 [thread overview]
Message-ID: <20090508204233.4aaed9ec@nehalam> (raw)
In-Reply-To: <de7adc5e0905081808h43e5ef84m113c4dd868077bf1@mail.gmail.com>
On Fri, 8 May 2009 19:08:06 -0600
Daniel Robbins <drobbins@funtoo.org> wrote:
> Your code in 2.6.27 works perfectly.
>
> Let me tell you what I was doing wrong, and if you could tell me why
> it didn't work, I'd really appreciate it :) (Might also be a good
> addition to the Net:Bridge FAQ):
>
> # brctl addbr br0
> # brctl addif br0 eth0
> # ifconfig br0 10.0.1.220 netmask 255.255.255.0
> # brctl addif br0 veth100.0
> # brctl addif br0 veth102.0
>
> Now, the zinger:
>
> # ifconfig br0 hw ether "12:34:56:78:90:ab"
>
> ^^ By using a unique MAC address, this command totally disables my
> bridge, and the machine can no longer send or receive data.
>
> If I use a MAC that is already in use by my bridge's sub-interfaces,
> however, (ie. from eth0, veth100.0 or veth102.0) then there's no
> problem, and everything works, and the MAC address is sticky as it
> should be.
>
> So this was the mistake I was making - I was using a user-generated
> MAC for my testing rather than choosing a MAC from one of the bridge's
> interfaces.
>
> So, my question is: why doesn't a user-generated MAC work? On the
> surface, it seems like all devices on the same LAN should have
> different MAC addresses. Yet, with Linux bridging, it appears that (at
> least in certain conditions, like if there is an IP assigned to the
> bridge,) then the bridge *must* share a MAC with one of its
> sub-interfaces in order to function properly. This is very
> counter-intuitive and a mystery to me and probably quite a few other
> bridging newbies (which is why an explanation would make a great
> addition to the Net:Bridge FAQ :)
The problem is that the bridge only thinks a packet is "local" if
it arrives with destination hw addr == incoming device address.
next prev parent reply other threads:[~2009-05-09 3:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-08 21:31 [Bridge] 2.6.27: persistent MAC assignment to bridge not working Daniel Robbins
2009-05-08 22:54 ` Stephen Hemminger
2009-05-08 23:20 ` Daniel Robbins
2009-05-08 23:27 ` Stephen Hemminger
2009-05-09 1:08 ` Daniel Robbins
2009-05-09 3:42 ` Stephen Hemminger [this message]
2009-05-09 6:34 ` Daniel Robbins
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=20090508204233.4aaed9ec@nehalam \
--to=shemminger@vyatta.com \
--cc=bridge@lists.linux-foundation.org \
--cc=drobbins@funtoo.org \
--cc=xemul@sw.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.