1. Change the NAME option in the NIC configuration file ifcfg-enoxxxxxx
Vim /etc/sysconfig/network-scripts/ifcfg-enoxxxxxx
Name=eth0
2. Change the NIC profile name
C d/etc/sysconfig/network-scripts/
MV Ifcfg-enoxxxxxx Ifcfg-eth0
3. Disable the predictable naming rule by editing /etc/default/grub and adding "net.ifnames=0 biosdevname=0 "
to grub_cmdline_linux variable to implement 650) this.width=650; "src=" http:/ S3.51cto.com/wyfs02/m00/74/05/wkiol1yof_-cfossaacsyvglzf4548.jpg "title=" image 1.png "alt=" wkiol1yof_- Cfossaacsyvglzf4548.jpg "/>
4. Run the command grub2-mkconfig-o/boot/grub2/grub.cfg to regenerate the grub Configuration and update the kernel parameters
5. Rebooting the system
This article is from the "Members Doukua" blog, make sure to keep this source http://tsang.blog.51cto.com/7597327/1699945
CentOS 7 changes the NIC name