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,
ifcfgformat interface renaming process involves these steps:- The
/usr/lib/udev/rules.d/60-net.rulesudevrule calls the/lib/udev/rename_devicehelper utility. - The helper utility searches for the
HWADDRparameter 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
DEVICEparameter of the file.
- The
keyfileformat 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
NetworkManagerconnection profile, specify the custom name in theinterface-nameproperty.
- To rename an interface, create a systemd link file or a udev rule.