如果您想了解Centos配置eth0提示Devicedoesnotseemtobepresent的相关知识,那么本文是一篇不可错过的文章,我们将对centos7eth0进行全面详尽的解释,并且为您提供
如果您想了解Centos 配置eth0 提示Device does not seem to be present的相关知识,那么本文是一篇不可错过的文章,我们将对centos7 eth0进行全面详尽的解释,并且为您提供关于Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization、CentOS device eth0 does not seem to be present...、CentOS Linux解决Device eth0 does not seem to be present、CentOS Linux解决Device eth0 does not seem to be present!的有价值的信息。
本文目录一览:- Centos 配置eth0 提示Device does not seem to be present(centos7 eth0)
- Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization
- CentOS device eth0 does not seem to be present...
- CentOS Linux解决Device eth0 does not seem to be present
- CentOS Linux解决Device eth0 does not seem to be present!
Centos 配置eth0 提示Device does not seem to be present(centos7 eth0)
一.故障现象:
delaying initialization
解决:# mv /etc/sysconfig/network-scripts/ifcfg-eth0
sysconfig/network-scripts/ifcfg-eth1
vim
sysconfig/network-scripts/ifcfg-eth1
修改DEVICE="eth0"
为DEVICE="eth1"
然后重启启动网卡尝试下
故障前的操作:
DELL刀片装的是CentOS6.3的操作系统,网卡识别的是em1和em2,由于工作需要做了槽位调整,并启动了刀片
故障现象:
启动后网络不通,通过iDRAC登录后route查看缺省路由正常;
重启网络服务:
[[email protected] ~]# service network restart Shutting down loopback insterface: [ OK ] Bringing up loopback insterface: [ OK ] Bringing up interface em1: Device em1 does not seem to be present,delaying initialization. [Failed]
分析问题和解决:
之前在别的文章中我们提过70-persistent-net.rules文件,所以看了一下:
[[email protected] ~]# 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 0x14e4:0x163a (bnx2) SUBSYstem=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="24:b6:fd:ab:76:1e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x14e4:0x163a (bnx2) SUBSYstem=="net", ATTR{address}=="24:b6:fd:ab:76:1c", NAME="eth0"
发现NAME的名称不正确,依次将上述红色字体中的eth0改为em1,eth1改为em2;
*切记:网卡编号由MAC地址大小决定,MAC越小网卡编号越小;
如下:
…………
# PCI device 0x14e4:0x163a (bnx2)
SUBSYstem=="net", NAME="em2"
# PCI device 0x14e4:0x163a (bnx2) SUBSYstem=="net", NAME="em1"
保存退出~!
[[email protected] ~]#reboot
………………
问题解决~!
Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization
centos 装好后克隆一份后,开机,发现没有网卡,然后重启了网络服务:service network restart
发现报如下错误:
Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization
解决过程:
1) 删除掉 /etc/udev/rules.d/70-persistent-net.rules
2) vi /etc/sysconfig/network-scripts/ifcfg-eth0
* 删除掉mac 项: HWADDR
* 删除UUID
3) 重启,解决
CentOS device eth0 does not seem to be present...
vmlite 虚拟机启动出错,就把这个虚拟机删除掉重新建立,系统虚拟硬盘使用之前的,启动系统后不能上网,通过 ifconfig 查看网卡没启动,遂启动网卡服务,但是出错,就是:device eth0 does not seem to be present, delaying initialization,然后想到是不是 ifcfg-eth0 的配置文件里保存了以前的 MAC 地址,就把这一行删除掉在重启网卡,还是一样的错误,随后网上查了下资料,把 /etc/udev/rules.d/70-persistent-net.rules 删除后重启机器就可以了,因为这个文件绑定了网卡和 mac 地址,所以换了网卡以后 MAC 地址变了,所以不能正常启动,也可以直接编辑这个配置文件把里面的网卡和 mac 地址修改乘对应的,不过这样多麻烦,直接删除重启,它会自动生成个。
1、
vi /etc/sysconfig/network-scripts/ifcfg-eth0
ifcfg-eth0 的配置文件里保存了以前的 MAC 地址,就把这一行删除掉在重启网卡
2、
/etc/udev/rules.d/70-persistent-net.rules 删除后重启机器
因为这个文件绑定了网卡和 mac 地址,所以换了网卡以后 MAC 地址变了,所以不能正常启动,也可以直接编辑这个配置文件把里面的网卡和 mac 地址修改乘对应的,不过这样多麻烦,直接删除重启,它会自动生成个。
或者以下方法:
ifconfig eth1 确定新网卡的 MAC 地址。
nmcli con 确定新网卡的 UUID
vim /etc/udev/rules.d/70-persistent-net.rules
把原 eth0 的相关信息删除,将 eth1 的 name 改为 eth0
cd /etc/sysconfig/network-scripts
vim ifcfg-eth0
HWADDR = 现在的实际 MAC
UUID = 现在的实际 UUID
上述处理操作完后,重启虚拟机!
CentOS Linux解决Device eth0 does not seem to be present
在VMware里克隆出来的CentOS Linux。。
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
正常了。
CentOS Linux解决Device eth0 does not seem to be present!
vi /etc/udev/rules.d/70-persistent-net.rules
1、删除原先的mac地址,然后将下面eth1 修改eth0,然后记录其mac地址,vi /etc/sysconfig/network-scripts/ifcfg-eth0 将HWADDR=为记录的网卡地址。
2、vi /etc/sysconfig/network-scripts/ifcfg-eth0
将其mac地址改为70-persistent-net.rules的eth1的mac地址,然后网卡名改成eth1,reboot重启。
关于Centos 配置eth0 提示Device does not seem to be present和centos7 eth0的介绍现已完结,谢谢您的耐心阅读,如果想了解更多关于Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization、CentOS device eth0 does not seem to be present...、CentOS Linux解决Device eth0 does not seem to be present、CentOS Linux解决Device eth0 does not seem to be present!的相关知识,请在本站寻找。
本文标签: