All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@linux-foundation.org>
To: x@muc.ccc.de
Cc: bridge@lists.linux-foundation.org
Subject: Re: [Bridge] bridge interface mac address
Date: Wed, 8 Sep 2010 09:23:22 -0700	[thread overview]
Message-ID: <20100908092322.573f67e2@nehalam> (raw)
In-Reply-To: <4C876530.5080107@muc.ccc.de>

On Wed, 08 Sep 2010 12:28:00 +0200
x@muc.ccc.de wrote:

> hi!
> 
> i'm using dynamips (router/switch emulator) and would like to have an interface on the host as a link to the 'emulated lab'. with dynamips, one of the host's interfaces can be used to connect to a port of the 'emulated lab'. dynamips obviously injects its packets into this interface, and sniffs for packets directed towards the 'emulated lab'.
> 
> now i just have a single physical interface on the host. and i don't want the lab-traffic to pass thru the physical interface (and productive segment connected to it).
> so i thought hey, let's be clever, just create a bridge. we don't need any bridge-members (yet), we just want to use it for the dynamips link for now.
> 
> after a brctl addbr, i get a bridge-interface - with a mac of 00:00:00:00:00:00.
> tried it anyway: it doesn't work (i see arp-requests from the host, i see arp-replies to the host - which the host obviously simply ignores, most probably because of the all-zero-mac).
> turns out it's also not possible to change the mac - not even to a locally administered mac.

A bridge with no attached ports is not really a bridge, just a ghost.

> is there a special way to set the bridge's mac? actually i find it quite irritating that it's not simply possible to change it just like with any other interface!?

The bridge inherits the mac of the first attached interface.
On recent kernels, it can also be set with the usual network tools (ip link, ifconfig, ...). If you are running some kernel older than 2.6.27 please
use something more recent.


> also i think it might not be wise to treat 00:00:00:00:00:00 special, filter it, or similar (after all it's a valid global unicast mac - assigned to xerox...).

All zero's is not a legal address in current 802. standards. It shows up
when devices are broken. It is supposed to be dropped.

  reply	other threads:[~2010-09-08 16:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-08 10:28 [Bridge] bridge interface mac address x
2010-09-08 16:23 ` Stephen Hemminger [this message]
2010-09-08 17:16 ` Sergei Zhirikov

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=20100908092322.573f67e2@nehalam \
    --to=shemminger@linux-foundation.org \
    --cc=bridge@lists.linux-foundation.org \
    --cc=x@muc.ccc.de \
    /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.