1.ifconfig -a 查看当前所有网卡

Centos7 网卡Device does not seem to be present解决办法-LMLPHP

2.修改网络配置文件

Centos7 网卡Device does not seem to be present解决办法-LMLPHP

3.在原来文件的基础上,修改网卡名称

DEVICE=ens32

NAME=ens32

并且把UUID以及mac地址删掉

mv ifcfg-ens12346 ifcfg-ens32

Centos7 网卡Device does not seem to be present解决办法-LMLPHP

4.rm -rf /etc/udev/rules.d/70-persistent-net.rules

5.reboot重启

05-01 02:45