Anyone who has installed rhel7 knows how annoying it is to check you network and not see eth0. Perhaps it is just me then… Regardless here are instructions on how to change it:
First you need to know the name of the network adapter in use, you can look in /etc/sysconfig/network-scripts/ifcfg-eno##### or run this command:
# ip addr show
Now you need to do the following:
add “net.ifnames=0 biosdevname=0″ to the end of the line beginning with: GRUB_CMDLINE_LINUX, for example:
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet net.ifnames=0 biosdevname=0"
Now you need to regenerate the GRUB configuration with the updated kernel parameters:
# grub2-mkconfig -o /boot/grub2/grub.cfg
Now you need to change the ‘eno##” named network scripts you identified above:
# cp -p /etc/sysconfig/network-scripts/ifcfg-eno16780032 /etc/sysconfig/network-scripts/ifcfg-eth0
Next edit the newly copied network script to change any reference to the eno### to eth0, for example:
sed -i -e 's/eno16780032/eth0/g' /etc/sysconfig/network-scripts/ifcfg-eth0
# shutdown -r now
After system reboot your network interface shall be called eth0 and all will be right in the world again…
Hat tip to Angelo for most of the leg work.