service network restart 报错:No suitable device found: no device found for connection 'System eth0'

“No suitable device found: no device found for connection 'System eth0'”

解决方法:


1、将/etc/udev/rules.d/70-persistent-net.rules的70-persistent-net.rules删除,然后重新启动。删除这个文件是为了能够正确的获得下面红色的mac序列号。


2、重启后编辑70-persistent-net.rules

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:33:29:f4:dc:2d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

改为 SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:33:29:f4:dc:2d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


3、接下来修改/etc/sysconfig/network-scripts/ifcfg-eth0文件,将mac地址修改成与70-persistent-net.rules文件中的相同的mac地址。


4、用service network restart重启下服务开到服务启动成功了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章