Cloning MAC address of a bridge interface

Sam Varshavchik mrsam at courier-mta.com
Tue Jan 9 14:18:23 UTC 2024


Using nmcli I created a bridge device, a bridge slave device attached to an  
existing ethernet port. The ethernet port was turned down, the bridge was  
turned up:

NAME                 UUID                                  TYPE      DEVICE
br0                  e2b50f4e-92b0-4abb-9224-feb7aaeec5fa  bridge    br0
bridge-slave-enp5s0  fbabd8bd-ae3c-4330-b9c7-652f246a5921  ethernet  enp5s0
enp5s0               cba50184-3629-3d73-b127-2bd7489974ce  ethernet  –

The bridge connection now has a different MAC address. Is there a way to  
clone the original enp5s0's MAC address, so that the DHCP server on the LAN  
can continue to use the same MAC address, to assign an IP address to this  
server?

2: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master  
br0 state UP group default qlen 1000
    link/ether 6c:5a:b0:3b:a1:a4 brd ff:ff:ff:ff:ff:ff

5: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP  
group default qlen 1000
    link/ether 6a:2f:91:28:9b:fc brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.12/24 brd 192.168.0.255 scope global dynamic  
noprefixroute br0

The DHCP server is seeing the 6a: address. I can't find where it's coming  
from.

Nothing that I've tried seemed to have any effect. I tried:

- setting bridge.mac-address on the br0 interface.

- setting 802-3-ethernet.mac-address on the bridge slave.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20240109/1c16012f/attachment.sig>


More information about the ubuntu-users mailing list