There are three steps to rename the network adapter to centos5 on behalf of the classic style eth0:
1, VIM/etc/sysconfig/grub, find grub_cmdline_linux, there is a vconsole. font = latarcyrheb-sun16, empty cells, and net. ifnames = 0 biosdevname = 0 save and exit;
Grub2-mkconfig-O/boot/grub2/grub. cfg
3. After restarting the system, run ip A and find that it is a classic eth0 style;
After the NIC is changed, it cannot be started because there is no corresponding configuration file. just create a/etc/sysconfig/network-scripts file. Assume that your Nic is eth0, start this network card in two steps:
1, VIM/etc/sysconfig/network-scripts/ifcfg-eth0, there are the following items is enough
Type = Ethernet
Bootproto = static
Name = eth0
Onboot = Yes
Ipaddr = 192.168.44.250
Netmask = 255.0.0.0
Device = eth0
Dns1 = 8.8.4.4
Gateway = 192.168.1.1
IP mask and DNS self-Thinking
2. IFUP eth0 is found to have been completed.
How to rename the centos7 Nic and how to replace the NIC