linux报错: no device found for connection 'System eth0'

检查ifcfg-eth0 如下图一:

linux报错: no device found for connection 'System eth0'


发现这些配置都没有错,可是用ifconfig -a 的时候却会报no device found for connection 'System eth0'这样的错

输入命令:cd /etc/udev/rules.d  打开:vi 70-persistent-net.rules文件


图二:

linux报错: no device found for connection 'System eth0'


图三

linux报错: no device found for connection 'System eth0'


这个时候发现图一红框内的内容和图三红框内的内容对不上号, 把图一的HWADDR的值改成图三红框内的值保存退出.


再重启 service network restart 即可

重启完后再用 ifconfig -a 发现不会报如题的错了

linux报错: no device found for connection 'System eth0'