Newer versions of CentOS and Red Hat Enterprise Linux, such as CentOS 7 and RHEL 7, use a different format for Ethernet device naming.  The long names can be cumbersome and difficult for systems administrators to work with. Fortunately, Ethernet devices can be easily reverted to the old naming format:

  1. edit the /etc/default/grub file, look for the line that says GRUB_CMDLINE_LINUX, and;
  2. add ” net.ifnames=0 biosdevname=0″ (use existing quotes, of course) at end of line
  3. run grub2-mkconfig -o /boot/grub2/grub.cfg
  4. move (mv) each /etc/sysconfig/network-scripts/ifcfg-eno* file to an ifcfg-eth* name, instead
  5. edit each ifcfg-eth* file, and change each reference from eno* to eth* within the file (there will likely only be one reference in the file)
  6. reboot, and that’s it!

Leave a Reply

Your email address will not be published. Required fields are marked *