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网卡内容删掉或者注释掉,然后将ehh1网卡内容里边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文件,然后重启机器,会自动生成。

2016-11-08 09:42 举报
已邀请:
0

scshfei

赞同来自:

学习

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: