
1.在 /etc/sysconfig/network-scirpts/ 文件夹下 创建一个ifcfg-eth0的文件,
最简单的方式是 mv ifcfg-ens192 ifcfg-eth0

然后 vi ifcfg-eth0 把DEVICE改成 DEVICE=eth0

wq! 保存
- vi /etc/sysconfig/grub # 在位置添加

net.ifnames=0 biosdevname=0 参数

完成之后保存退出
- 生成grub启动菜单 grub2-mkconfig -o /boot/grub2/grub.cfg

- 重启系统 reboot 生效:

