Bridge MAC addresses are the same on two hosts

snave

Dabbler
Joined
Dec 31, 2020
Messages
13
I have two TrueNAS-SCALE-21.04-ALPHA.1 hosts, I recently set up bridging on them to allow guests to communicate with the hosts, I was a bit surprised to find the br0 MAC address to be the same for both hosts - 12:2b:e9:cd:52:ba

Can anyone suggest a work around or fix for this?

Thanks

Ben
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
On FreeBSD these are derived from /etc/hostid if nothing different is specified. Possibly there is a similar mechanism in Debian, too. Did you install these two systems independently or was the second created by cloning the first? That would explain the problem on FreeBSD.

Lastly, again on FreeBSD, there is the tuneable net.link.bridge.inherit_mac to force the bridge interface to use the hardware MAC address of the first member.

I would dig into the Debian documentation with these FreeBSD features in mind.
 

snave

Dabbler
Joined
Dec 31, 2020
Messages
13
I believe on Debian that /etc/machine-id is used as some kind of seed in the bridge generation process. I checked my two machines and they have dissimilar machine-id. These systems were independently installed from the same USB installer, and then upgraded through the Alpha release process.
 
Top