Centos系统下载大全 | Redhat系统下载大全 | Windows2012系统下载大全 | Windows2008系统下载大全| CMS教程 | 网站地图 51运维网-专注Linux/Unix系统安全运维!
当前位置:51运维网 > 系统 > CentOS问题 > 正文

device "eth0" does not seem to be present解决

时间:2016-06-29 18:36 来源:网络整理 作者:linux系统 阅读:

1 device "eth0" does not seem to be present, delaying initialization


原因是Centos6使用udev动态管理设备文件将MAC地址和网卡名称对应记录在udev的规则脚本中,VMware升级后虚拟机网卡MAC会改变,这样系统会认为网卡是新增的并命名为eth1,查看如下:

1 2 3 4 5 6 7 8 9 10 ip add 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 link/ether 00:0c:29:ce:c0:1e brd ff:ff:ff:ff:ff:ff inet 192.168.1.13/24 brd 192.168.1.255 scope global eth1 inet6 fe80::20c:29ff:fece:c01e/64 scope link


解决方法1,修改网络配置文件设备eth0为eth1:

1 2 3 4 5 6 7 cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth1" BOOTPROSTO=static IPADDR=192.168.1.13 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 ONBOOT="yes"


解决方法2,修改udev记录的mac与网卡名称对应规则:

1 2 3 cat /etc/udev/rules.d/70-persistent-net.rules # PCI device 0x1022:0x2000 (pcnet32) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:ce:c0:1e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


感谢您对【51运维网 http://www.51ou.com/】的支持,我们为您免费提供《device "eth0" does not seem to be present解决》技术文章,《device "eth0" does not seem to be present解决》详细使用和说明,有时《device "eth0" does not seem to be present解决》可能不完善、敬请谅解!如果《device "eth0" does not seem to be present解决》有错误请给我们留言,我们将尽快修复文章错误,如果您觉得本站不错,请分享给周围的朋友!谢谢!

顶一下
(0)
0%
踩一下
(0)
0%
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
验证码:点击我更换图片