On a CentOS/RHEL 7, the network interface will be named like enoxxx. This post provides steps on how to disable such “Predictable Network Interface Device Names”.
We can use the following ways to disable the predictable network interfaces:
1. Create your own manual naming scheme by defining your own udev rules file in /etc/udev/rules.d folder and set the NAME property for the devices.
Make sure to order it before the default policy file which is /etc/udev/rules.d/70-persistent-net.rules. For example setting the interface as lan0:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{type}=="1", NAME="lan0"
2. Pass the arguments net.ifnames=0 and biosdevname=0 on the kernel command line in /etc/grub.conf file.