解决Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.(示例代
Posted 维也纳下午茶
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.(示例代相关的知识,希望对你有一定的参考价值。
一、问题描述
OS:centos
原因是拷贝虚拟机造成的。
使用vmworkstation打开虚拟机的时候,要选择copy而非move。
二、解决描述
网络上解决步骤各异,其实就一句话。只要保证vmwrare virtual machine的.vmx配置文件、ifconfig –a、/etc/sysconfig/network-scripts/ifcfg-eth0 、/etc/udev/rules.d/70-persistent-net.rules,所使用的网卡设备和MAC地址一致即可。
三、具体操作
1) 确认vmx配置文件的mac地址
ethernet0.generatedAddress = "00:0c:29:f3:fe:4b" |
2) ifconfig –a 确认当前网卡和mac地址
[[email protected] Desktop]# ifconfig -a eth1 Link encap:Ethernet HWaddr 00:0C:29:F3:FE:4B BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:19 Base address:0x2024 lo Link encap:Local Loopback ……………………………… |
3) 重命名/etc/sysconfig/network-scripts/ifcfg-eth0为ifcfg-eth0
[[email protected] Desktop]# cd /etc/sysconfig/network-scripts [[email protected] network-scripts]# mv ifcfg-eth0 ifcfg-eth1 |
vim /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth1" BOOTPROTO="dhcp" HWADDR="00:0C:29:F3:FE:4B" ………… |
4) 修改vim /etc/udev/rules.d/70-persistent-net.rules
注释掉eth0的记录,打开eth1的记录
vim /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x1022:0x2000 (vmxnet) (custom name provided by external tool) #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0C:29:F3:FE:4B", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x1022:0x2000 (vmxnet) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:f3:fe:4b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" |
5) 重启网络服务
会读取刚才修改过的配置文件,如果配置文件不生效的话,使用source命令使得配置文件生效即可。
service network restart |
以上是关于解决Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.(示例代的主要内容,如果未能解决你的问题,请参考以下文章
解决Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.(示例代
如何解决虚拟机克隆导致"Bringing up interface eth0: Error: No suitable device found: no device found for c
Centos7: Bringing up interface eth0: Error: Connection activation failed
Bringing up interface eth0: Error: No suitable
Bringing up interface eth0: Error:Unknown connection:
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.