“Device eth0 does not seem to be present”解决办法

VirtualBox迁移CentOS虚拟机后配置网卡时,出现以下问题:html

[root@localhost Desktop]# 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查看发现缺乏eth0,只有lo。vim

解决办法:网络

[root@localhost Desktop]# cat /etc/udev/rules.d/70-persistent-net.rules
[root@localhost Desktop]# vim /etc/sysconfig/network-scripts/ifcfg-eth0

打开ifcfg-eth0,将该文件MAC地址修改为70-persistent-net.rules文件显示的MAC地址,同时修改DEVICE名称为70-persistent-net.rules文件中的设备名:NAME="eth0",保存后,再重启网络便可。ide

要保证/etc/sysconfig/network-scripts/ifcfg-eth0 与/etc/udev/rules.d/70-persistent-net.rules的网卡地址与设备号信息一致,service network restart 配置成功。oop

(参考:http://www.cnblogs.com/fbwfbi/archive/2013/04/29/3050907.htmlrest

相关文章
相关标签/搜索