1. 程式人生 > >Device eth0 does not seem to be present”解決辦法 (常見於克隆系統後出現的網路配置問題)

Device eth0 does not seem to be present”解決辦法 (常見於克隆系統後出現的網路配置問題)

# service network restart
Shutting down loopback insterface: [ OK ]
Bringing up loopback insterface: [ OK ]

Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]

用ifconfig檢視發現缺少eth0,只有lo;用ifconfig -a檢視發現多出了eth1的資訊。

解決辦法1:
# mv /etc/sysconfig/network-scripts/ifcfg-eth0  /etcsysconfig/network-scripts/ifcfg-eth1

將eth0的mac地址改為eth1的mac地址,同時改變其DEVICE名稱為eth1,再重啟網路即可。

解決辦法2:
# rm -rf/etc/udev/rules.d/70-persistent-net.rules
# reboot


總之,
只要保證/etc/sysconfig/network-scripts/ifcfg-eth0/etc/udev/rules.d/70-persistent-net.rules的資訊一致即可,即網絡卡地址與網絡卡編號一致,這樣service network restart 就可以配置成功。