今天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