Hi,

On Wed, Jan 14, 2026 at 01:21:39PM +0100, Nicolas Kovacs wrote:
> So here's my question. I'd like my br0 to have the same MAC address as my
> enp3s0 without having to jump through burning loops.
> 
> Any suggestions ?

It is more correct to have the bridge use a random MAC address (or,
really, unique on the system as that is the goal). The main reason that
N-M clones the MAC address is it makes the setup simpler and doesn't
alter your DHCP lease, but if the network is more complicated then it
can lead to some issues.

Basically if you can tolerate the DHCP-assigned address being different
then I'd stick with the distinct MAC address. If it's that you don't
like that it's a random MAC every boot, I'd set the distinct MAC - you
can also set that MAC to statically get the same IP address in DHCP if
you want.

If none of that appeals and you really want to replicate N-M behaviour
then it;'s quite simple: either use ifupdown's "hwaddress" directive, or
directly set with "ip link set br0 address" in a pre-up.

auto br0
iface br0 inet dhcp
    bridge_ports eth0
    hwaddress ether b0:83:fe:90:4d:64

or:

auto br0
iface br0 inet dhcp
    bridge_ports eth0
    pre-up ip link set $IFACE address b0:83:fe:90:4d:64

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Reply via email to