标签: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 ………………
标签:Linux运维
原文地址:http://blog.51cto.com/13744837/2116858