Device eth0 does not seem to be present

Device eth0 does not seem to be present解決辦法:網絡

http://blog.163.com/zhaoweibiao87@126/blog/static/1347994812013111142514928/oop

將 DEVICE="eth0"  改爲  DEVICE="eth1"  ,
將 HWADDR="00:0c:29:8f:89:97" 改爲上面的mac地址  HWADDR="00:0c:29:50:bd:17"spa

最後,重啓網絡rest

# service network restartcode


在KVM中克隆出新的CentOS虛擬機時,出現以下問題:
# 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 就能夠配置成功。
blog

相關文章
相關標籤/搜索