Divice eth0 dose not seem to be present ,delaying initalization解决办法
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Divice eth0 dose not seem to be present ,delaying initalization解决办法相关的知识,希望对你有一定的参考价值。
因为整理硬盘里各种资料,就把VMware的虚拟系统移动到另外一个位置。但是启动之后不能上网,无法使用远程登录工具,通过ifconfig查看到网卡没有启动,然后启动网卡服务,报错:Divice eth0 dose not seem to be present ,delaying initalization。然后在网上找到解决办法,原因是eth0绑定的是原MAC地址导致,很顺利解决,记录一下:
故障表现;
ifconfig 没有看到网卡eth0,然后重启网卡服务,出现下面的报错:
#service network restart
Shutting down loopback insterface: [ OK ]
Bringing up loopback insterface: [ OK ]
Bringing up interface eth0: Divice eth0 dose not seem to be present ,delaying
initalization. [ FAILED ]
解决办法:
1、打开/etc/udev/rules.d/70-persistent-net.rulesnei内容如下:
#vi /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0×1022:0×2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*‘, ATTR{address}=="00:0c:29:a2:a9:5d", ATTR{type}==”1", KERNEL=="eth*", NAME="eth0"
# PCI device 0×1022:0×2000 (pcnet32)
SUBSYSTEM==“net”, ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:bd:a4:a8", ATTR{type}==“1", KERNEL=="eth*", NAME="eth1"
将etho网卡内容删掉或者注释掉,然后将NAME=后边的内容eth1改成eth0。
2、打开/etc/sysconfig/network-scripts/ifcfg-eth0修改MAC地址
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
将HWADDR="00:0c:29:a2:a9:5d", 改成HWADDR="00:0c:29:bd:a4:a8"
3、最后,重启网络服务
#service network restart
附录:
还有一种比较暴力直接的方法,只是需要重启。删掉/etc/sysconfig/network-scripts/ifcfg-eth0文件中HWADDR这一行,删掉/etc/udev/rules.d/70-persistent-net.rules文件,然后重启机器,会自动生成。
本文出自 “流云” 博客,请务必保留此出处http://walterliew.blog.51cto.com/11286797/1877072
以上是关于Divice eth0 dose not seem to be present ,delaying initalization解决办法的主要内容,如果未能解决你的问题,请参考以下文章
Device eth0 does not seem————解决方法
“Device eth0 does not seem to be present”解决办法
Linux解决Device eth0 does not seem to be present
CentOS Linux解决Device eth0 does not seem to be present
device eth0 does not seem to be present, delaying initialization