Renaming Process Differences Between Connection Profile Formats
In cases when you need to assign a custom name to an interface, the
udev
service renaming process works differently depending on the format of the connnection
profile. For example,
ifcfg
format interface renaming process involves these steps:- The
/usr/lib/udev/rules.d/60-net.rules
udev
rule calls the/lib/udev/rename_device
helper utility. - The helper utility searches for the
HWADDR
parameter in/etc/sysconfig/network-scripts/ifcfg-*
files. - If the value set in the variable matches the MAC address of an
interface, the helper utility renames the interface to the name set in
the
DEVICE
parameter of the file.
- The
keyfile
format interface renaming process involves these steps:- To rename an interface, create a systemd link file or a udev rule.
See Oracle Linux 8: Managing the System With systemd and Oracle Linux 8: Managing System Devices With udev for more information.
- In the
NetworkManager
connection profile, specify the custom name in theinterface-name
property.
- To rename an interface, create a systemd link file or a udev rule.