Bug#941603: udev: bond interface does not inherit mac address of a slave

Alexandra N. Kossovsky Alexandra.Kossovsky at oktetlabs.ru
Thu Oct 3 09:44:12 BST 2019


I do not think systemd people will accept it as a bug.
They have a new configuration key MACAddressPolicy, and it all works as 
expected.  Or almost as expected.

In /lib/systemd/network/99-default.link I see:
MACAddressPolicy=persistent
man systemd.link says:
Otherwise, a new MAC address is generated which is guaranteed to be the 
same on every boot for the given machine and the given device, but which 
is otherwise random.

So the only bug is that 2 similar machines get the same "otherwise 
random" MAC addresses.


I've solved my issue by editing /lib/systemd/network/99-default.link:
[Link]
NamePolicy=keep kernel database onboard slot path
# Sasha: MACAddressPolicy=persistent gives the same MAC on both ends
# of bond interface.  Let's keep to good old kernel random.
#MACAddressPolicy=persistent
MACAddressPolicy=none


I tried to implement my own config file
cat /etc/systemd/network/nomac.link
[Match]
OriginalName=*

[Link]
MACAddressPolicy=none


but it did not help.


-- 
Alexandra N. Kossovsky
OKTET Labs (http://www.oktetlabs.ru/)



More information about the Pkg-systemd-maintainers mailing list