码迷,mamicode.com
首页 > 系统相关 > 详细

VMware克隆的虚拟机,开机后启动网卡报错

时间:2018-05-16 13:01:08      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:Linux运维

VMware克隆的虚拟机,开机后启动网卡报错

故障现象:

[root@anuo ~]# 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]

这时候可以输入 ifconfig -a 可以看到没有eth0的网卡设备名,却有eth1

解决办法1:

[root@anuo ~]# mv /etc/sysconfig/network-scripts/ifcfg-eth0? /etc/sysconfig/network-scripts/ifcfg-eth1 
[root@anuo ~]# vim?/etc/sysconfig/network-scripts/ifcfg-eth1 
修改DEVICE="eth0"? 为DEVICE="eth1"  
然后重启启动网卡尝试下

解决办法2:

[root@anuo ~]# vim /etc/udev/rules.d/70-persistent-net.rules
……
\# PCI device 0x8086:0x100f (e1000) 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e4:54:4e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

\# PCI device 0x8086:0x100f (e1000) 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e4:54:58", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

将上面红色字体中的eth0改为eth1,eth1改为eth0; 
reboot重启

解决办法3:

[root@anuo ~]# rm -rf /etc/udev/rules.d/70-persistent-net.rules
[root@anuo ~]# reboot ………………

VMware克隆的虚拟机,开机后启动网卡报错

标签:Linux运维

原文地址:http://blog.51cto.com/13744837/2116858

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!