-
Step 1. The robust solution that worked for me: These four lines that must exist in the network-script file:
/etc/sysconfig/network-scripts/ifcfg-somename1
NAME=somename1 DEVICE=somename1 HWADDR=FE:FF:GG:11:00:10 UUID=b623cbaa-ffe2-3456-7890-1a23b465cd67
Caveat: The file cannot have HWADDR and MACADDR at the same time, it can only have one or the other. You can get the UUID from the command nmcli c.
-
Step 2. add net.ifnames=0 somewhere after nomodeset and before rhgb in this file:
/etc/default/grub
then run the command sudo grub2-mkconfig -o /boot/grub2/grub.cfg
-
Step 3. Match the MAC address to the nic name in this file:
/etc/systemd/network/70-custom-ifnames.link
[Match] MACAddress=FE:FF:GG:11:00:10 [Link] Name=somename1
-
Step 4. Add these lines to the custom rules file:
/etc/udev/rules.d/70-custom-ifnames.rules
SUBSYSTEM=="net",ACTION=="add",ATTR{address}=="FE:FF:GG:11:00:10",ATTR{type}=="1",NAM