Linux重启网卡报错Device eth0 does not seem to be present
2018-01-25 20:10
686 查看
Centos6.8重启网卡报错Device eth0 does not seem to be present
虚拟机安装Centos系统以后,导出镜像,然后倒入镜像,修改IP后发现网卡启动失败:
# 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]
可能是因为在虚拟机中移动了Centos系统对应的文件,导致重新配置时,网卡的MAC地址变了。
# ifconfig
只能看到lo
# ifconfig -a
能看到
eth1和lo
解决办法:
step1: rm -rf /etc/udev/rules.d/70-persistent-net.rules
step2: reboot
重启以后,ip addr 或 ifconfig 可以看到lo和eth0了,MAC地址和/etc/sysconfig/network-scripts/ifcfg-eth0中的配置的MAC也一致了,如果MAC不一致,需要vi /etc/sysconfig/network-scripts/ifcfg-eth0,修改MAC和ip addr显示的MAC保持一致。
step3: vi /etc/sysconfig/network-scripts/ifcfg-eth0
step4: service network restart
说明:ip addr看到的MAC地址是和vi /etc/sysconfig/network-scripts/ifcfg-eth0 中的一致的。如果网卡配置文件中的MAC有误,需要修改。
部分虚机,还碰到按照前面解决不了的情况。重启之后,发现网卡变成了ifconfig 或 ip addr 显示的网卡为lo 和 eth1,而不是eth0。
网卡配置文件用的是eth0,而没有eth1:/etc/sysconfig/network-scripts/ifcfg-eth0
查看 vi /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e9:85:f6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
此时,直接修改NAME="eth1"中的eth1改为eth0即可,然后service network restart
虚拟机安装Centos系统以后,导出镜像,然后倒入镜像,修改IP后发现网卡启动失败:
# 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]
可能是因为在虚拟机中移动了Centos系统对应的文件,导致重新配置时,网卡的MAC地址变了。
# ifconfig
只能看到lo
# ifconfig -a
能看到
eth1和lo
解决办法:
step1: rm -rf /etc/udev/rules.d/70-persistent-net.rules
step2: reboot
重启以后,ip addr 或 ifconfig 可以看到lo和eth0了,MAC地址和/etc/sysconfig/network-scripts/ifcfg-eth0中的配置的MAC也一致了,如果MAC不一致,需要vi /etc/sysconfig/network-scripts/ifcfg-eth0,修改MAC和ip addr显示的MAC保持一致。
step3: vi /etc/sysconfig/network-scripts/ifcfg-eth0
step4: service network restart
说明:ip addr看到的MAC地址是和vi /etc/sysconfig/network-scripts/ifcfg-eth0 中的一致的。如果网卡配置文件中的MAC有误,需要修改。
部分虚机,还碰到按照前面解决不了的情况。重启之后,发现网卡变成了ifconfig 或 ip addr 显示的网卡为lo 和 eth1,而不是eth0。
网卡配置文件用的是eth0,而没有eth1:/etc/sysconfig/network-scripts/ifcfg-eth0
查看 vi /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e9:85:f6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
此时,直接修改NAME="eth1"中的eth1改为eth0即可,然后service network restart
相关文章推荐
- linux 复制虚拟机时重启网卡出现错误:device eth0 does not seem to be present,delaying initialization
- linux系统克隆后网卡报错 eth0: device eth0 does not seem to be present ,delayin
- virualbox 复制linux,启用网卡报错:device "eth0" does not seem to be present, delaying initialization
- 从vware里克隆出的CentOS Linux,ifconfig 没有ip地址 和重启 Device eth0 does not seem to be present
- Linux网卡异常:解决Device eth0 does not seem to be present
- 导入已经安装好的Redhat系统 重启网卡 提示 “Device eth0 does not seem to be present, delaying initialization.”
- linux 网卡问题 Device eth0 does not seem to be present,delaying initialization.
- 重启网卡提示Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization.
- Vbox导入已经安装好的Redhat系统 重启网卡 提示 “Device eth0 does not seem to be present, delaying initialization.”
- xenerver 6.0 linux报网卡device eth0 does not seem to be present,delaying initialization
- vmware虚拟机克隆后,启动网卡报错device eth0 does not seem to be present, delaying initialization
- vm 克隆一台新机器启动网卡报错:device eth0 does not seem to be present, delaying initialization
- 重启网卡报错:Device eth0 does not seem to be present
- Linux解决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
- Linux解决Device eth0 does not seem to be present
- Linux 克隆虚拟机引起的“Device eth0 does not seem to be present, delaying initialization”
- vmware克隆linux出现Device eth0 does not seem to be present
- Linux 克隆虚拟机引起的“Device eth0 does not seem to be present, delaying initialization”