快速业务通道

device eth1 does not seem to be present, delaying intitialization 解决办法

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-03-28

最近参与群里的企业级linux综合实验项目的时候,需要大量的虚拟机来搭建实验环境,便使用了一台闲置的8G内存的hp145,安装了esxi4来部署虚拟机,为了方便,安装好一个RHEL6,制作成了OVF模板,添加了两块网卡.结果利用该OVF模板建立新的虚拟机后,网卡无法使用,ifconfig 只有lo的信息,没有添加的两个网卡的ip信息.经过一番查看,终于找到了原因,及相关的解决办法,记录如下:

具体错误信息,

/etc/init.d/network 后会出现

device eth0 does not seem to be present, delaying intitialization

device eth1 does not seem to be present, delaying intitialization

dmesg | grep eth

发现了如下内容

renamed network interface eth0 to eth2

renamed network interface eth1 to eth3

ls /etc/sysconfig/network-scripts/

发现只有

ifcfg-eth0 ifcfg-eth1 的配置文件

检查了eth0的配置文件 如下

DEVICE=”eth0″ NM_CONTROLLED=”yes” ONBOOT=”yes” BOOTPROTO=static IPADDR=10.0.8.10 NETMASK=255.255.255.0

并没有任何异常

google了一番,出现该问题的时候涉及一个文件

/etc/udev/rules.d/70-persistent-net.rules

具体内容如下: [root@rhellab ~]# more /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×8086:0x100f (e1000) (custom name provided by external tool) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:56:94:66:7 1″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″ # PCI device 0×8086:0x100f (e1000) (custom name provided by external tool) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:56:94:57:c 7″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth1″ # PCI device 0×8086:0x100f (e1000) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:56:94:18:1 c”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth2″ # PCI device 0×8086:0x100f (e1000) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:56:94:14:b e”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth3″
Empire CMS,phome.net

看了这个文件以后,发现了问题的所在.也就想到了解决办法.

只要删掉# PCI device 0×8086:0x100f (e1000) 这四段内容,然后重启即可.

本文出自 “开源运维研究室” 博客,请务必保留此出处http://devops.blog.51cto.com/3542185/666999

Empire CMS,phome.net

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号