* [Bridge] Prevent MAC address from changing
@ 2009-01-12 16:05 Simon Detheridge
2009-01-12 17:36 ` Stephen Hemminger
0 siblings, 1 reply; 5+ messages in thread
From: Simon Detheridge @ 2009-01-12 16:05 UTC (permalink / raw)
To: bridge
Hello,
I have a box with a bridge, br0, that exists to bridge a bunch of tap interfaces together. I'm running a program that binds to this address to serve things. Unfortunately, this server (it's isc-dhcp3) doesn't like it when the mac address changes.
I've tried configuring a dummy interface dummy0, and adding it as the first interface on br0, before I bind my server to it. I was hoping that the mac address of dummy0 would be used as the mac address for br0.
What actually happens is that it uses the dummy0 mac address until the first tap interface is connected, and then the mac address changes to that of the tap interface, and my dhcp server stops working.
Is there a way I can prevent this from happening?
Thanks,
Simon
--
Simon Detheridge - CTO, Widgit Software
26 Queen Street, Cubbington, CV32 7NA - Tel: +44 (0)1926 333680
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bridge] Prevent MAC address from changing
2009-01-12 16:05 [Bridge] Prevent MAC address from changing Simon Detheridge
@ 2009-01-12 17:36 ` Stephen Hemminger
2009-01-12 19:51 ` Dietmar Maurer
0 siblings, 1 reply; 5+ messages in thread
From: Stephen Hemminger @ 2009-01-12 17:36 UTC (permalink / raw)
To: Simon Detheridge; +Cc: bridge
On Mon, 12 Jan 2009 16:05:45 +0000 (GMT)
Simon Detheridge <simon@widgit.com> wrote:
> Hello,
>
> I have a box with a bridge, br0, that exists to bridge a bunch of tap interfaces together. I'm running a program that binds to this address to serve things. Unfortunately, this server (it's isc-dhcp3) doesn't like it when the mac address changes.
>
> I've tried configuring a dummy interface dummy0, and adding it as the first interface on br0, before I bind my server to it. I was hoping that the mac address of dummy0 would be used as the mac address for br0.
>
> What actually happens is that it uses the dummy0 mac address until the first tap interface is connected, and then the mac address changes to that of the tap interface, and my dhcp server stops working.
>
> Is there a way I can prevent this from happening?
>
> Thanks,
> Simon
>
latest kernels have a way to set mac address. After setting mac address of bridge device,
then address won't change.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bridge] Prevent MAC address from changing
2009-01-12 17:36 ` Stephen Hemminger
@ 2009-01-12 19:51 ` Dietmar Maurer
2009-01-12 20:06 ` Stephen Hemminger
0 siblings, 1 reply; 5+ messages in thread
From: Dietmar Maurer @ 2009-01-12 19:51 UTC (permalink / raw)
To: Stephen Hemminger, Simon Detheridge; +Cc: bridge
> latest kernels have a way to set mac address. After setting mac
address
> of bridge device, then address won't change.
AFAIK the bridge code always uses the lowest MAC address, so setting the
MAC address
does not help. As soon as you add a port with a lower MAC the address
changes. Or did that behavior change recently?
- Dietmar
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bridge] Prevent MAC address from changing
2009-01-12 19:51 ` Dietmar Maurer
@ 2009-01-12 20:06 ` Stephen Hemminger
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Hemminger @ 2009-01-12 20:06 UTC (permalink / raw)
To: Dietmar Maurer; +Cc: bridge
On Mon, 12 Jan 2009 20:51:14 +0100
"Dietmar Maurer" <dietmar@proxmox.com> wrote:
> > latest kernels have a way to set mac address. After setting mac
> address
> > of bridge device, then address won't change.
>
> AFAIK the bridge code always uses the lowest MAC address, so setting the
> MAC address
> does not help. As soon as you add a port with a lower MAC the address
> changes. Or did that behavior change recently?
>
> - Dietmar
>
If you manually configure an MAC address, it sticks as of 2.6.27
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <1107190142.119461231806153899.JavaMail.root@ken>]
* Re: [Bridge] Prevent MAC address from changing
[not found] <1107190142.119461231806153899.JavaMail.root@ken>
@ 2009-01-13 0:25 ` Simon Detheridge
0 siblings, 0 replies; 5+ messages in thread
From: Simon Detheridge @ 2009-01-13 0:25 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: bridge
----- "Stephen Hemminger" <shemminger@vyatta.com> wrote:
> If you manually configure an MAC address, it sticks as of 2.6.27
*sigh* - This was what I tried to do, but it didn't work. Obviously my kernel is too old.
I'm on Amazon EC2, which is stuck on 2.6.21 right now (at least in Europe, which is where I'm trying to host my application).
I tried listening on dummy0 instead, but it turns out a dummy interface is not a real interface and my packets go nowhere.
veth might be perfect for what I'm trying to do (it makes a bit more sense than an IP address assigned to the bridge) but again my kernel is too old.
None of these issues are a problem for this list, however.
Thanks for the help,
Simon
--
Simon Detheridge - CTO, Widgit Software
26 Queen Street, Cubbington, CV32 7NA - Tel: +44 (0)1926 333680
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-01-13 0:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-12 16:05 [Bridge] Prevent MAC address from changing Simon Detheridge
2009-01-12 17:36 ` Stephen Hemminger
2009-01-12 19:51 ` Dietmar Maurer
2009-01-12 20:06 ` Stephen Hemminger
[not found] <1107190142.119461231806153899.JavaMail.root@ken>
2009-01-13 0:25 ` Simon Detheridge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox