* [Bridge] MAC addresses on ports
@ 2008-01-16 14:09 Marian Jancar
2008-01-16 18:31 ` Stephen Hemminger
2008-01-22 5:58 ` richardvoigt
0 siblings, 2 replies; 4+ messages in thread
From: Marian Jancar @ 2008-01-16 14:09 UTC (permalink / raw)
To: bridge
Hi,
I need some explanation/help with a probably bit uncommon bridge setup. I have
devices that come with their manufacturer MAC addresses, and I need to create
a bridge that uses my MAC address instead and has to look about like this:
br0: unique MAC address from my range
wlan0: same MAC as br0
(madwifi supports 4 MAC frames in STA mode so the actual bridging works,
just if you are curious :p)
eth0: any MAC address higher than the br0 MAC,
and as long as the assumptions below hold, unique in just this bridge,
eth1: ditto
...
ethN: ditto
Now, the only reason I can think about from my naive point of view, why the bridge
cares about port MAC address at all, is maintaining a reliable and persistent
connection between the logical port and the actual physical device for STP
purposes.
So if I'm right, I can assign any MAC addresses to the ethernet ports, as long
as they are higher than the wlan0 address, to ensure that the bridge selects
the wlan0 MAC as its own, and as long as they are locally unique.
The MAC addresses of the ethernet ports will not appear in any non-STP
packets and don't have to be globally unique, because they identify ports in
just this bridge and STP handles that, just a port has always to have the
same address and not a random one.
Is this correct? If not, is there any other way to create a bridge and
not to have to allocate a unique MAC to each port?
Any comments and/or pointers to relevant documentation are highly appreciated.
Best Regards
Marian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bridge] MAC addresses on ports
2008-01-16 14:09 [Bridge] MAC addresses on ports Marian Jancar
@ 2008-01-16 18:31 ` Stephen Hemminger
2008-01-22 5:58 ` richardvoigt
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2008-01-16 18:31 UTC (permalink / raw)
To: Marian Jancar; +Cc: bridge
On Wed, 16 Jan 2008 15:09:48 +0100
Marian Jancar <m.jancar@satca.net> wrote:
> Hi,
>
> I need some explanation/help with a probably bit uncommon bridge setup. I have
> devices that come with their manufacturer MAC addresses, and I need to create
> a bridge that uses my MAC address instead and has to look about like this:
>
> br0: unique MAC address from my range
> wlan0: same MAC as br0
> (madwifi supports 4 MAC frames in STA mode so the actual bridging works,
> just if you are curious :p)
> eth0: any MAC address higher than the br0 MAC,
> and as long as the assumptions below hold, unique in just this bridge,
> eth1: ditto
> ...
> ethN: ditto
>
>
> Now, the only reason I can think about from my naive point of view, why the bridge
> cares about port MAC address at all, is maintaining a reliable and persistent
> connection between the logical port and the actual physical device for STP
> purposes.
>
> So if I'm right, I can assign any MAC addresses to the ethernet ports, as long
> as they are higher than the wlan0 address, to ensure that the bridge selects
> the wlan0 MAC as its own, and as long as they are locally unique.
> The MAC addresses of the ethernet ports will not appear in any non-STP
> packets and don't have to be globally unique, because they identify ports in
> just this bridge and STP handles that, just a port has always to have the
> same address and not a random one.
>
> Is this correct? If not, is there any other way to create a bridge and
> not to have to allocate a unique MAC to each port?
>
> Any comments and/or pointers to relevant documentation are highly appreciated.
Latest version of code allows bridge to have any mac address.
You do HAVE to make sure device in bridge has a unique mac address.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bridge] MAC addresses on ports
2008-01-16 14:09 [Bridge] MAC addresses on ports Marian Jancar
2008-01-16 18:31 ` Stephen Hemminger
@ 2008-01-22 5:58 ` richardvoigt
2008-01-22 9:19 ` [Bridge] " Marian Jancar
1 sibling, 1 reply; 4+ messages in thread
From: richardvoigt @ 2008-01-22 5:58 UTC (permalink / raw)
To: Marian Jancar; +Cc: bridge
On Jan 16, 2008 2:09 PM, Marian Jancar <m.jancar@satca.net> wrote:
> Hi,
>
> I need some explanation/help with a probably bit uncommon bridge setup. I have
> devices that come with their manufacturer MAC addresses, and I need to create
> a bridge that uses my MAC address instead and has to look about like this:
>
> br0: unique MAC address from my range
> wlan0: same MAC as br0
> (madwifi supports 4 MAC frames in STA mode so the actual bridging works,
> just if you are curious :p)
> eth0: any MAC address higher than the br0 MAC,
> and as long as the assumptions below hold, unique in just this bridge,
> eth1: ditto
> ...
> ethN: ditto
>
>
> Now, the only reason I can think about from my naive point of view, why the bridge
> cares about port MAC address at all, is maintaining a reliable and persistent
> connection between the logical port and the actual physical device for STP
> purposes.
>
> So if I'm right, I can assign any MAC addresses to the ethernet ports, as long
> as they are higher than the wlan0 address, to ensure that the bridge selects
> the wlan0 MAC as its own, and as long as they are locally unique.
> The MAC addresses of the ethernet ports will not appear in any non-STP
> packets and don't have to be globally unique, because they identify ports in
> just this bridge and STP handles that, just a port has always to have the
> same address and not a random one.
>
> Is this correct? If not, is there any other way to create a bridge and
> not to have to allocate a unique MAC to each port?
I'm pretty sure you have it nailed except for one thing... what is all
this "higher than" another MAC address? There's no ordering defined
for MAC addresses, and it wouldn't matter anyway, in my experience the
bridge takes the MAC address of the lowest-numbered port, that is the
first one added to the bridge, without regard for the addresses.
So you can just let ethX use the manufacturer assigned addresses, as
long as you add wlan0 to the bridge before ethX.
>
> Any comments and/or pointers to relevant documentation are highly appreciated.
>
>
> Best Regards
> Marian
>
> _______________________________________________
> Bridge mailing list
> Bridge@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/bridge
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bridge] Re: MAC addresses on ports
2008-01-22 5:58 ` richardvoigt
@ 2008-01-22 9:19 ` Marian Jancar
0 siblings, 0 replies; 4+ messages in thread
From: Marian Jancar @ 2008-01-22 9:19 UTC (permalink / raw)
To: richardvoigt@gmail.com; +Cc: bridge
richardvoigt@gmail.com wrote:
> I'm pretty sure you have it nailed except for one thing... what is all
> this "higher than" another MAC address? There's no ordering defined
> for MAC addresses, and it wouldn't matter anyway, in my experience the
> bridge takes the MAC address of the lowest-numbered port, that is the
> first one added to the bridge, without regard for the addresses.
It used to take the lowest MAC address (and effectively changing it when
you added new port with lower MAC that it had), but it seems to be changed
recently.
Marian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-22 9:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-16 14:09 [Bridge] MAC addresses on ports Marian Jancar
2008-01-16 18:31 ` Stephen Hemminger
2008-01-22 5:58 ` richardvoigt
2008-01-22 9:19 ` [Bridge] " Marian Jancar
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.