2024-12-20 08:20:01 +00:00
|
|
|
From ec6d57d8ff39de440393955a8de88883a014a4b6 Mon Sep 17 00:00:00 2001
|
2024-07-04 09:16:56 +00:00
|
|
|
From: Michal Sekletar <msekleta@redhat.com>
|
|
|
|
Date: Tue, 21 Sep 2021 15:01:19 +0200
|
|
|
|
Subject: [PATCH] udev/net-setup-link: change the default MACAddressPolicy to
|
|
|
|
"none"
|
|
|
|
|
|
|
|
While stable MAC address for interface types that don't have the
|
|
|
|
address provided by HW could be useful it also breaks LACP based bonds.
|
|
|
|
Let's err on the side of caution and don't change the MAC address from
|
|
|
|
udev.
|
|
|
|
|
|
|
|
RHEL-only: policy
|
|
|
|
|
|
|
|
Related: RHEL-40924
|
|
|
|
---
|
|
|
|
man/systemd.link.xml | 2 +-
|
|
|
|
network/99-default.link | 2 +-
|
|
|
|
test/fuzz/fuzz-link-parser/99-default.link | 2 +-
|
|
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/man/systemd.link.xml b/man/systemd.link.xml
|
2024-12-17 15:03:39 +00:00
|
|
|
index 81d54cdc39..cfdad61741 100644
|
2024-07-04 09:16:56 +00:00
|
|
|
--- a/man/systemd.link.xml
|
|
|
|
+++ b/man/systemd.link.xml
|
|
|
|
@@ -1386,7 +1386,7 @@ OriginalName=*
|
|
|
|
[Link]
|
|
|
|
NamePolicy=keep kernel database onboard slot path
|
|
|
|
AlternativeNamesPolicy=database onboard slot path
|
|
|
|
-MACAddressPolicy=persistent</programlisting>
|
|
|
|
+MACAddressPolicy=none</programlisting>
|
|
|
|
</example>
|
|
|
|
|
|
|
|
<example>
|
|
|
|
diff --git a/network/99-default.link b/network/99-default.link
|
2024-12-17 15:03:39 +00:00
|
|
|
index 083dca48c9..e64ac7efec 100644
|
2024-07-04 09:16:56 +00:00
|
|
|
--- a/network/99-default.link
|
|
|
|
+++ b/network/99-default.link
|
|
|
|
@@ -12,4 +12,4 @@ OriginalName=*
|
|
|
|
[Link]
|
|
|
|
NamePolicy=keep kernel database onboard slot path
|
2024-12-17 15:03:39 +00:00
|
|
|
AlternativeNamesPolicy=database onboard slot path mac
|
2024-07-04 09:16:56 +00:00
|
|
|
-MACAddressPolicy=persistent
|
|
|
|
+MACAddressPolicy=none
|
|
|
|
diff --git a/test/fuzz/fuzz-link-parser/99-default.link b/test/fuzz/fuzz-link-parser/99-default.link
|
|
|
|
index feb5b1fbb0..3d755898b4 100644
|
|
|
|
--- a/test/fuzz/fuzz-link-parser/99-default.link
|
|
|
|
+++ b/test/fuzz/fuzz-link-parser/99-default.link
|
|
|
|
@@ -9,4 +9,4 @@
|
|
|
|
|
|
|
|
[Link]
|
|
|
|
NamePolicy=keep kernel database onboard slot path
|
|
|
|
-MACAddressPolicy=persistent
|
|
|
|
+MACAddressPolicy=none
|