[Bridge] Bridge MAC address

Stephen Hemminger shemminger at osdl.org
Mon Jan 31 08:45:35 PST 2005

On Mon, 31 Jan 2005 12:29:09 +0200
Nuutti Kotivuori <naked at iki.fi> wrote:

> Sorry, if this question has been answered before, but I could not find
> out with a brief look.
> How can I set the MAC address for a bridge? The MAC address given for
> the bridge device seems to be the one it sends network packets with if
> the bridge device has an IP address set. Apparently the bridge starts
> with a zero MAC address and when the first interface is attached to
> it, it takes its MAC address. When I try to set the MAC address, I
> just get operation unsupported as a result.
> I know I can probably cheat this by making a dummy interface, giving
> it the MAC address I want and then attaching it to the bridge, but
> this is but a crude workaround.
> -- Naked

The question is why do you need to set it at all? If this is some ISP
mac filtering issue, then set it on the first device before putting it into
the bridge.  I would be reluctant to change the bridge driver to accept
MAC address changes because of Spanning Tree and other standards related issues.

Stephen Hemminger	<shemminger at osdl.org>

More information about the Bridge mailing list