问题描述

克隆服务器之后,开启网卡出现下面的问题

Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.

1
2
3
4
5
6
CentOS Device does not seem to be present 
故障现象:
[root@c1node01 ~]# 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]

问题分析

在linux下的虚拟机出现了这个问题,问题的产生是因为之间做过部分的修改,clone等操作。 克隆之后的MAC地址也是之前的,所以说要修改成自动获取的MAC地址。

问题解决

1
2
3
4
5
6
7
8
9
10
11
1.修改Centos虚拟机克隆机的HWADDR为ifconfig -a的MAC地址 
形如:HWADDR="00:0C:29:90:A7:23"
2.然后再做以下操作
[root@c1node01 ~]# rm -rf /etc/udev/rules.d/70-persistent-net.rules
[root@c1node01 ~]# reboot
………………
[root@c1node01 ~]# service network restart
Shutting down loopback insterface: [ OK ]
Bringing up loopback insterface: [ OK ]
Bringing up interface eth0: [ OK ]
[root@c1node01 ~]#