Prevent MAC address from changing
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
Signature · 2 lines
Simon Detheridge - CTO, Widgit Software 26 Queen Street, Cubbington, CV32 7NA - Tel: +44 (0)1926 333680
Quoted 4 lines · On Mon, 12 Jan 2009 16:05:45 +0000 (GMT) Simon Detheridge <[email protected]>…
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.
Quoted 9 lines
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.
Quoted 1 line
latest kernels have a way to set mac address. After setting mac
address
Quoted 1 line
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
Quoted 11 lines · On Mon, 12 Jan 2009 20:51:14 +0100 "Dietmar Maurer" <[email protected]> wrote:
Quoted 1 line
latest kernels have a way to set mac address. After setting mac
address
Quoted 1 line
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