The name of the CentOS7 NIC is no longer the name of the previous version of eth0, eth1, but enoxxx, which is relatively long, not easy to remember, and inconvenient to operate. Some students are more accustomed to using the name of the previous eth0. How to change the name of the network card? 1 Check the name of your CentOS7 network card (usually the first network card is called eno16777736) Ip addr 2 Edit the configuration file Vi /etc/sysconfig/network-scripts/ifcfg-eno16777736 Change all eno16777736 in the configuration file to eth0 3 Modify the name of the NIC configuration file. Cd /etc/sysconfig/network-scripts/ Mv ifcfg-eno16777736 ifcfg-eth0 4 Modify the grub configuration file Vim /etc/default/grub Add "net.ifnames=0 biosdevname=0" to the GRUB_CMDLINE_LINUX variable as follows: GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet net.ifnames=0 biosdevname=0" 5 Regenerate the grub configuration and update the kernel parameters Grub2-mkconfig -o /boot/grub2/grub.cfg 6 restart Reboot Dongguan Guancheng Precision Plastic Manufacturing Co., Ltd. , https://www.dpowergo.com