Re: The periodic change in MACAddressPolicy in ubuntu 2022

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 17, 2024 at 3:03 PM Choi yenos <cpg0504@xxxxxxxxx> wrote:
>
> 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.

/usr/lib is owned by your system package manager, so it can be
overwritten on package updates. Use /etc/systemd/network to configure
overrides.

>
> -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.




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux