解决:no device found for connection ‘ System eth0′

今天VMWARE虚拟机安装的CentOS不能上网,使用用service network restart 提示centos

Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  Error: No suitable device found: no device found for connection ‘ System eth0′.[FAILED]oop

ifconfig eth0 up提示ui

eth0: unknown interface: No such devicerest

而后去修改 /etc/sysconfig/network-script/ifcfg-eth0文件,没发现什么问题。研究了好长时间后,终于解决了这个问题。ip

解决办法:get

一、删除/etc/udev/rules.d/70-persistent-net.rules文件,重启系统。虚拟机

二、若是上面的不起做用,那么去看ifcfg-eth0文件中的HWADDR是否正确,改为正确的HWADDR。it

我就是经过这两条方法解决问题上网的。io

相关文章
相关标签/搜索