Product SiteDocumentation Site

8.9. Disabling Consistent Network Device Naming

To disable consistent network device naming, choose from one of the following:
  • Disable the assignment of fixed names, so that the unpredictable kernel names are used again, by masking udev's rule file for the default policy. This masking can be done by making a symbolic link to /dev/null. As root, issue a command as follows:
    ~]# ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules
  • Create your own manual naming scheme, for example by naming your interfaces internet0, dmz0 or lan0. To do that create your own udev rules file and set the NAME property for the devices. Make sure to order it before the default policy file, for example by naming it /etc/udev/rules.d/70-my-net-names.rules.
  • Alter the default policy file to pick a different naming scheme, for example to name all interfaces after their MAC address by default. As root copy the default policy file as follows:
    ~]# cp /usr/lib/udev/rules.d/80-net-name-slot.rules /etc/udev/rules.d/80-net-name-slot.rules
    Edit the file in the /etc/udev/rules.d/ directory and change the lines as necessary.
  • Append the following directive to the kernel command line in the GRUB 2 menu:
    To update all the GRUB 2 kernel menu entries, enter a command as root as follows:
    ~]# grubby --update-kernel=ALL --args=net.ifnames=0
    For more information about working with GRUB 2 see the Fedora 25 System Administrator's Guide.