修改4个文件后重启网卡
vim /etc/default/grub
GRUB_CMDLINE_LINUX="resume=UUID=05dbb36b-dbba-40a3-ba99-1b044593917d rhgb quiet net.ifnames=0"
grub2-mkconfig -o /boot/grub2/grub.cfg
vim /etc/sysconfig/network-scripts/
[root@C8 ~]# ll /etc/sysconfig/network-scripts/
total 4
-rw-r--r--. 1 root root 310 Mar 16 01:56 ifcfg-ens33
[root@C8 ~]# mv /etc/sysconfig/network-scripts/ifcfg-ens33 /etc/sysconfig/network-scripts/ifcfg-ens33.bak
[root@C8 ~]# cat > ifcfg-eth0
DEVICE=eth0
NAME=eth0
BOOTPROTO=static
IPADDR=10.0.0.8
PREFIX=24
GATEWAY=10.0.0.2
DNS1=10.0.0.2
DNS2=180.76.76.76
ONBOOT=yes