Rootop 服务器运维与web架构

Device eth0 does not seem to be present, delaying initialization.

| 暂无评论

在vmware中安装完redhat6.3启动网络报错:
[root@localhost ~]# service network start
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  Device eth0 does not seem to be present, delaying initialization.
[FAILED]
网上查到的原因是70-persistent-net.rules中的mac地址配置与实际错误。这里打开看一下:
[root@localhost ~]# vi /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0c:29:39:b0:b6″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0c:29:c3:9e:23″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth1″
出现了eth0和eth1,实际上我并没有eth1,将下面的eth1改为eth0(也可以直接将70-persistent-net.rules文件删除),重启系统,网络启动了。
[root@localhost ~]# ifconfig | grep eth0
eth0      Link encap:Ethernet  HWaddr 00:0C:29:C3:9E:23
在/etc/udev/rules.d/70-persistent-net.rules的文件中提示了此文件由/lib/udev/write_net_rules脚本生成,查看下。
[root@localhost ~]# vi /lib/udev/write_net_rules
# This script is run to create persistent network device naming rules
# based on properties of the device. 意思说脚本基于设备信息生成固定的网络设备名称规则。


这里又打开vmware确认了网卡地址确实为00:0c:29:c3:9e:23,再次修改70-persistent-net.rules文件,删除行:
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:0c:29:39:b0:b6″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″
把错误的mac地址这两行删除。

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/1646.html

作者:Venus

服务器运维与性能优化

发表回复