vim /etc/sysconfig/grub
然后,往这个文件中添加“net.ifnames=0 biosdevname=0”内容
然后执行如下命令:
grub2-mkconfig -o /boot/grub2/grub.cfg
修改网卡名称
mv /etc/sysconfig/network-scripts/ifcfg-eno16777736 /etc/sysconfig/network-scripts/ifcfg-eth0
查看UUID
cat /boot/grub2/grub.cfg |grep uuid
修改ifcfg-eth0
NAME="eth0"
UUID="d5b25521-9c35-4604-9d1f-8a3d4018ee87"
DEVICE="eth0"