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.
  • Add the following line to the /etc/default/grub file:
    net.ifnames=0
    or pass it to the kernel at boot time using the GRUB2 command line interface. For more information about GRUB2 see Fedora 20 System Administrator's Guide.