1.修改网卡配置文件的名称
[root@linux7 network-scripts]# cd /etc/sysconfig/network-scripts/
[root@linux7 network-scripts]# mv ifcfg-eno16777728 ifcfg-eth0
2.修改网卡配置文件
[root@linux7 network-scripts]# vim ifcfg-eth0
NAME="eth0"
DEVICE=eth0
3.禁用可预见命名规则
[root@linux7 network-scripts]# vim /etc/default/grub
GRUB_CMDLINE_LINUX="rd.lvm.lv=rhel/root crashkernel=auto rd.lvm.lv=rhel/swap vconsole.font=latarcyrheb-sun16 vconsole.keymap=us rhgb quiet
net.ifnames=0 biosdevname=0"
GRUB_DISABLE_RECOVERY="true"
4.重新生成GRUB配置并更新内核参数
[root@linux7 network-scripts]# grub2-mkconfig -o /boot/grub2/grub.cfg
5.重启
reboot