Linux_解决启动网卡失败 Device eth0 does not seem to be present

Linux_解决启动网卡失败  Device eth0 does not seem to be present

虚拟机克隆  发现service network restart 启动失败

故障现象:

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

正常了。

方法二:

步骤

1、
vi /etc/sysconfig/network-scripts/ifcfg-eth0
ifcfg-eth0的配置文件里保存了以前的MAC地址,就把这一行删除掉在重启网卡

2、
rm -rf /etc/udev/rules.d/70-persistent-net.rules 删除后重启机器

原文地址:https://www.cnblogs.com/Mr-wx/p/8886111.html

时间: 2024-10-10 21:12:12

Linux_解决启动网卡失败 Device eth0 does not seem to be present的相关文章

vbox克隆虚拟机,网卡启动报错“Device eth0 does not seem to be present”

vbox克隆虚拟机,网卡启动报错"Device eth0 does not seem to be present". 需要看下面三个地方:确保文件名,设备名,mac地址都一致. mac地址以vbox的设置页面上的为准. /proc/net/dev /etc/udev/rules.d/70-persistent-net.rules /etc/sysconfig/network-scripts 我这边的情况是: /proc/net/dev 文件里并不是eth0----eth3,而是eth4

linux 网卡问题 Device eth0 does not seem to be present,delaying initialization.

Device eth0 does not seem to be present,delaying initialization. 网上搜索后才发现原因所在:原来vmware在复制了虚拟机后会自动生成一个新的网卡设备供该虚拟机使用,比如 原先的网卡是eth0,复制虚拟机后后就会增加eth1.但是由于没有生成相应的/etc/sysconfig/network-scripts /ifcfg-eth1文件,导致网络连接失败,这个应该是vmware的一个bug. 查看网卡配置文件/etc/udev/rul

centos6 网卡问题 Device eth0 does not seem to be present

virtualbox 重装后,添加原来安装好到centos系统,不能联网问题 service network restart centos linux 出现Device eth0 does not seem to be present 1.用命令ip l发现 eth1 无eth0网卡 得到eth1的mac地址(也可以通过该文件查地址/etc/udev/rules.d/70-persistent-net.rules) 2.查/etc/sysconfig/network-scripts/ifcfg-

克隆虚机网卡出现 Device eth0 does not seem to be present, delaying initialization 错误

错误原因    克隆的Linux系统在新的机器上运行,新服务器网卡物理地址已经改变.而/etc/udev/rules.d/70-persistent-net.rules这个文件确定了网卡和MAC地址的信息之间的绑定,克隆后的网卡的MAC已经发生了变化,所以导致系统认为网络设备不存在,网络不能正常启动.另外一个就是/etc/sysconfig/network-scripts/ifcfg-eth0里面MAC地址也是以前的旧信息.   关于/etc/udev/rules.d/70-persistent

vmware克隆centos后启动网卡失败解决方法

故障描述: #ifup eth0 Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. 解决方法: #cat /etc/udev/rules.d/70-persistent-net.rules 记录下eth1的mac地址 #vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE改为eth1 HWADDR改为复制的mac

linux 启动network后报错:device eth0 does not seem to be present, delaying initialization

问题背景: 在vsphere client中部署ovf模板后启动linux 的network后提示:device eth0 does not seem to be present, delaying initialization 设备eth0没有准备就绪,延迟初始化,如图所示: 问题原因是导出的ovf模板中的MAC地址为源系统的MAC(配置文件为源系统(导出ovf模板的系统)的配置文件),用ovf部署后的系统MAC地址已经变化,所以导致初始化失败,解决方法如下: 1. vi /etc/sysco

VMWARE克隆启动网卡失败

安装系统时候为防止后面克隆导致网卡MAC地址重复,安装系统的时候没有添加网卡,后面克隆完系统添加了网卡,通过setup发现找不到网卡,安装VMware tools后发现也还是一样,把VMXNET3换成E1000重启后发现还是认不出,怎么办?配置文件没找到我就创建了个,配置好IP.DNS,重启网卡提示以下错误: Device eth0 does not seem to be present, delaying initialization. 这时候通过setup就可以找到网卡了,发现网卡.NDS那

问题:Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]—— 找不到网卡。

克隆虚拟机的时候或其他情况出现以下问题(命令service network restart): Bringing up interface eth0:  Device eth0 does not seem to be present,delaying initialization.                    [FAILED] 1.造成的原因: 第一次创建的时候,在文件: /etc/sysconfig/network-scripts/ifcfg-eth0 里面设定了网卡0绑定了MAC地

Device eth0 does not seem to be present,delaying initialization. 虚拟机克隆后出现网卡起不来

一.故障现象: [[email protected] ~]# service network restart Shutting down loopback insterface:                                                       [   OK  ] Bringing up loopback insterface:                                                            [