解决:no device found for connection ‘System eth0′
今天VMWARE虚拟机安装的CentOS不能上网,使用用service network restart 提示
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]用ifconfig eth0 up提示
eth0: unknown interface: No such device
然后去修改/etc/sysconfig/network-script/ifcfg-eth0文件,没发现什么问题。研究了好长时间后,终于解决了这个问题。
解决办法:
1、删除/etc/udev/rules.d/70-persistent-net.rules文件,重启系统。
2、如果上面的不起作用,那么去看ifcfg-eth0文件中的HWADDR是否正确,改成正
确的HWADDR。