* Bridge & it's MAC address question
@ 2006-10-30 12:27 Dmitry Mishin
2006-10-30 15:28 ` Stephen Hemminger
0 siblings, 1 reply; 6+ messages in thread
From: Dmitry Mishin @ 2006-10-30 12:27 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: netdev, bridge, devel
Hi,
Could somebody explain, why bridge uses minimal MAC of the attached devices?
It makes this address instable, variable during bridge life-cycle, which is
not good for DHCP. For example, I want to attach multiple virtual devices to
one physical. Then, I need to make sure that after each virtual device
addition, bridge addr is not changed and still addr of the physical device.
Why not to use MAC of the first attached device?
--
Thanks,
Dmitry.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bridge & it's MAC address question
2006-10-30 12:27 Bridge & it's MAC address question Dmitry Mishin
@ 2006-10-30 15:28 ` Stephen Hemminger
2006-12-15 13:19 ` Lennert Buytenhek
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Hemminger @ 2006-10-30 15:28 UTC (permalink / raw)
To: Dmitry Mishin; +Cc: netdev, bridge, devel
On Mon, 30 Oct 2006 15:27:14 +0300
Dmitry Mishin <dim@openvz.org> wrote:
> Hi,
>
> Could somebody explain, why bridge uses minimal MAC of the attached devices?
> It makes this address instable, variable during bridge life-cycle, which is
> not good for DHCP. For example, I want to attach multiple virtual devices to
> one physical. Then, I need to make sure that after each virtual device
> addition, bridge addr is not changed and still addr of the physical device.
> Why not to use MAC of the first attached device?
>
The bridge physical address is the minimum of all the attached devices.
This is done because the STP standard requires it. You can reset it
to be the same as any of the attached devices. This will not cause a problem
unless using STP.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bridge & it's MAC address question
2006-10-30 15:28 ` Stephen Hemminger
@ 2006-12-15 13:19 ` Lennert Buytenhek
2006-12-15 15:52 ` [Bridge] " Stephen Hemminger
0 siblings, 1 reply; 6+ messages in thread
From: Lennert Buytenhek @ 2006-12-15 13:19 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: Dmitry Mishin, netdev, bridge, devel
On Mon, Oct 30, 2006 at 07:28:37AM -0800, Stephen Hemminger wrote:
> > Could somebody explain, why bridge uses minimal MAC of the attached devices?
> > It makes this address instable, variable during bridge life-cycle, which is
> > not good for DHCP. For example, I want to attach multiple virtual devices to
> > one physical. Then, I need to make sure that after each virtual device
> > addition, bridge addr is not changed and still addr of the physical device.
> > Why not to use MAC of the first attached device?
>
> The bridge physical address is the minimum of all the attached devices.
> This is done because the STP standard requires it. You can reset it
> to be the same as any of the attached devices. This will not cause a
> problem unless using STP.
You can in fact use any MAC address. The STP standard recommends using
the minimum address, as that is deterministic, and so it doesn't depend
on the order in which you enslave subdevices.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bridge] Bridge & it's MAC address question
2006-12-15 13:19 ` Lennert Buytenhek
@ 2006-12-15 15:52 ` Stephen Hemminger
2006-12-15 16:04 ` Lennert Buytenhek
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Hemminger @ 2006-12-15 15:52 UTC (permalink / raw)
To: Lennert Buytenhek; +Cc: Dmitry Mishin, netdev, bridge, devel
On Fri, 15 Dec 2006 14:19:08 +0100
Lennert Buytenhek <buytenh@wantstofly.org> wrote:
> On Mon, Oct 30, 2006 at 07:28:37AM -0800, Stephen Hemminger wrote:
>
> > > Could somebody explain, why bridge uses minimal MAC of the attached devices?
> > > It makes this address instable, variable during bridge life-cycle, which is
> > > not good for DHCP. For example, I want to attach multiple virtual devices to
> > > one physical. Then, I need to make sure that after each virtual device
> > > addition, bridge addr is not changed and still addr of the physical device.
> > > Why not to use MAC of the first attached device?
> >
> > The bridge physical address is the minimum of all the attached devices.
> > This is done because the STP standard requires it. You can reset it
> > to be the same as any of the attached devices. This will not cause a
> > problem unless using STP.
>
> You can in fact use any MAC address. The STP standard recommends using
> the minimum address, as that is deterministic, and so it doesn't depend
> on the order in which you enslave subdevices.
So should restriction be lifted?
Please update wiki page FAQ, or I'll do it
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bridge] Bridge & it's MAC address question
2006-12-15 15:52 ` [Bridge] " Stephen Hemminger
@ 2006-12-15 16:04 ` Lennert Buytenhek
2007-04-09 18:30 ` Sven Köhler
0 siblings, 1 reply; 6+ messages in thread
From: Lennert Buytenhek @ 2006-12-15 16:04 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: Dmitry Mishin, netdev, bridge
[ dropped subscriber-only openvz.org list ]
On Fri, Dec 15, 2006 at 07:52:36AM -0800, Stephen Hemminger wrote:
> > > The bridge physical address is the minimum of all the attached devices.
> > > This is done because the STP standard requires it. You can reset it
> > > to be the same as any of the attached devices. This will not cause a
> > > problem unless using STP.
> >
> > You can in fact use any MAC address. The STP standard recommends using
> > the minimum address, as that is deterministic, and so it doesn't depend
> > on the order in which you enslave subdevices.
>
> So should restriction be lifted?
We should definitely allow users to override the MAC address of a
bridge interface.
> Please update wiki page FAQ, or I'll do it
Please do.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bridge & it's MAC address question
2006-12-15 16:04 ` Lennert Buytenhek
@ 2007-04-09 18:30 ` Sven Köhler
0 siblings, 0 replies; 6+ messages in thread
From: Sven Köhler @ 2007-04-09 18:30 UTC (permalink / raw)
To: bridge; +Cc: netdev
[-- Attachment #1.1: Type: text/plain, Size: 884 bytes --]
>>>> The bridge physical address is the minimum of all the attached devices.
>>>> This is done because the STP standard requires it. You can reset it
>>>> to be the same as any of the attached devices. This will not cause a
>>>> problem unless using STP.
>>> You can in fact use any MAC address. The STP standard recommends using
>>> the minimum address, as that is deterministic, and so it doesn't depend
>>> on the order in which you enslave subdevices.
>> So should restriction be lifted?
>
> We should definitely allow users to override the MAC address of a
> bridge interface.
Yes, i would love to have that feature.
I'm using a bridge for a Xen host machine. Interfaces of the Xen guests
are dynamically added to and removed from the bridge. At the moment, i
create and add a tun interface to the bridge, so the bridge has a valid
mac address at all.
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
[-- Attachment #2: Type: text/plain, Size: 165 bytes --]
_______________________________________________
Bridge mailing list
Bridge@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/bridge
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-04-09 18:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-30 12:27 Bridge & it's MAC address question Dmitry Mishin
2006-10-30 15:28 ` Stephen Hemminger
2006-12-15 13:19 ` Lennert Buytenhek
2006-12-15 15:52 ` [Bridge] " Stephen Hemminger
2006-12-15 16:04 ` Lennert Buytenhek
2007-04-09 18:30 ` Sven Köhler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).