[systemd-devel] The periodic change in MACAddressPolicy in ubuntu 2022

Choi yenos cpg0504 at gmail.com
Tue Dec 17 12:03:39 UTC 2024


HI all, It seems that the MACAddressPolicy is periodically changing or
being updated on my Ubuntu 22.04 cluster.

When I create the 22.04 image, I set the file
/usr/lib/systemd/network/99-default.link to MACAddressPolicy=none and
generate the image.

However, after a certain period of time (24 hours?), the value changes back
to MACAddressPolicy=persistent. Strangely, even though the value has
changed, the date still points to 2022.

-rw-r--r-- 1 root root 499 Mar 11  2022
/usr/lib/systemd/network/99-default.link
Is there a specific systemd daemon that might be changing this value?

As a solution, I can set the �file with a higher priority, but I am curious
about why it is being changed.
----------------
[Match]
OriginalName=*

[Link]
NamePolicy=keep kernel database onboard slot path
AlternativeNamesPolicy=database onboard slot path
MACAddressPolicy=persistent
thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20241217/a457ef7d/attachment.htm>


More information about the systemd-devel mailing list