修改grub配置文件
一:vim /etc/default/grub
quite后添加net.ifnames=0 biosdevname=0
wq:
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot 重启服务
二:删除错误网卡
nmcli connection delete ens33
三:添加新网卡名称
nmcli connection add type ethernet ifname eth0 con-name eth0
四:激活网卡
nmcli connection modify eth0 ipv4.method auto autoconnect yes
nmcli connection ip eth0.