Published On: February 11, 2021|Categories: Linux|Tags: , |

Sometimes it is convenient to have user assigned names to network interfaces – particularly when the MAC address of the interface remains constant but the bus on which it is attached may change because it’s a virtual machine.

All that is required to be done is create a file /etc/udev/rules.d/persistent-net.rules : This file used to exist earlier but has been phased out by most mainstream Linux distributions in favor of the consistent naming scheme or other methods like systemd-networkd.

The udev rules required in that file:

Save the file and reboot, the network interfaces should be assigned the new names as per the rules in this file.

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.