8.9. Disabling Consistent Network Device Naming

To disable consistent network device naming, is only recommended for special scenarios. See Chapter 8, Consistent Network Device Naming and Section 8.10, “Troubleshooting Network Device Naming” for more information.
To disable consistent network device naming, choose from one of the following:
  • Disable the assignment of fixed names by "masking" udev's rule file for the default policy. This can be done by creating a symbolic link to /dev/null. As a result, unpredictable kernel names will be used. As root, enter the following command:
    ~]# 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 the new file above 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.
  • Open the /etc/default/grub/ file and find the GRUB_CMDLINE_LINUX variable.


    GRUB_CMDLINE_LINUX is a variable that includes entries which are added to the kernel command line. It might already contain additional configuration depending on your system settings.
    Add net.ifnames=0 as kernel parameter to the GRUB_CMDLINE_LINUX variable.
    To update all the GRUB 2 kernel menu entries in the /boot/grub2/grub.cfg file, enter the following command as root:
    ~]# grubby --update-kernel=ALL --args=net.ifnames=0
    The grubby utility is used for updating and displaying information about the configuration files for the grub boot loader. See the grubby(8) man page for more details. For more information about working with GRUB 2, see the Red Hat Enterprise Linux 7 System Administrator's Guide.