在VMware里克隆出来的CentOS Linux,ifconfig...没有看到eth0.。然后重启网卡又报下面错误。
Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]
vi /etc/sysconfig/network-scripts/ifcfg-eth0 设置了IP地址后仍没有用。
解决方案一:
vi /etc/udev/rules.d/70-persistent-net.rules记下mac地址,如下:
00-0c-29-a5-38-77 eth0
00-0C-29-4f-1e-d6 eth1
然后 vi /etc/sysconfig/network-scripts/ifcfg-eth0
将 DEVICE="eth0" 改成 DEVICE="eth1" ,
将 HWADDR="00:0c:29:8f:89:97" 改成上面的mac地址 HWADDR="00-0C-29-4f-1e-d6"
最后,重启网络
# service network restart或者# /etc/init.d/network restart
正常了。
解决方案二:如果mac地址不是很重要的话,注释掉mac地址那一行之后再启动eth0
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29806344/viewspace-1389332/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29806344/viewspace-1389332/