您现在的位置是:网站首页> 编程资料编程资料
CentOS Linux解决网卡启动时候报Device eth0 does not seem to be present错误_资源网
2023-11-14
276人已围观
简介 CentOS Linux解决网卡启动时候报Device eth0 does not seem to be present错误_资源网
ifconfig...没有看到eth0.。然后重启网卡又报下面错误。
故障现象:
service network restart
Shutting down loopback insterface: [ OK ]
Bringing up loopback insterface: [ OK ]
Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]

解决办法:
首先,打开/etc/udev/rules.d/70-persistent-net.rules内容如下面例子所示:
# 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 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:8f:89:9
7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:50:bd:1
7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
记录下,eth1网卡的mac地址00:0c:29:50:bd:17
接下来,打开/etc/sysconfig/network-scripts/ifcfg-eth0
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
将 DEVICE="eth0" 改成 DEVICE="eth1" ,
将 HWADDR="00:0c:29:8f:89:97" 改成上面的mac地址 HWADDR="00:0c:29:50:bd:17"
最后,重启网络
# service network restart
或者
# /etc/init.d/network restart
正常了。
相关内容
- 删除文件或文件夹出错怎么办?_资源网
- 迷你西游一星法术混水腿法技能图鉴_手机游戏_游戏攻略_
- 全民英雄传奇全民靴怎么获得? 属性是什么?_手机游戏_游戏攻略_
- 迷你西游金角大王介绍_手机游戏_游戏攻略_
- 洛克王国印记的真相是什么? 洛克王国印记的真相任务有什么?_手机游戏_游戏攻略_
- 全民防线有哪些角色 各角色介绍_手机游戏_游戏攻略_
- 洛克王国圣光迪莫之蛋有什么用?洛克王国圣光迪莫之蛋如何使用?_手机游戏_游戏攻略_
- 天天酷跑里约大冒险宠物图鉴大全一览_手机游戏_游戏攻略_
- 迷你西游连击狂热饮血流哪些卡牌好?_手机游戏_游戏攻略_
- 天天酷跑抽奖技巧抽到永久暴力鸟叔攻略技巧推荐_手机游戏_游戏攻略_
