symlinks: Mention how to disable NIC alternative names assignment

Fixes #5394.
This commit is contained in:
Xi Ruoyao 2023-12-19 19:50:34 +08:00
parent 7380559028
commit 3608380f22
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -112,6 +112,19 @@
proceeding, and be sure to use that <literal>NAME</literal> value when
creating your network configuration files.</para>
<para>Even if the custom udev rule file is created, udev may still
assign one or more alternative names for a NIC based on physical
characteristics. If a custom udev rule would rename another NIC using
a name already assigned as an alternative name of another NIC, this
udev rule will fail. If this issue happens, you may create the
<filename>/etc/udev/network/99-default.link</filename> configuration
file with an empty alternative assignment policy, overriding the
default configuration file
<filename>/usr/lib/udev/network/99-default.link</filename>:</para>
<screen role="nodump"><userinput>sed -e '/^AlternativeNamesPolicy/s/=.*$/=/' \
-i /usr/lib/udev/network/99-default.link \
> /etc/udev/network/99-default.link</userinput></screen>
</sect3>
</sect2>