解决:重启network服务时报错:no device found for connection ‘ Systemeth0′.[FAILED]

来源:互联网 发布:linux 域名绑定目录 编辑:程序博客网 时间:2024/05/17 15:59

环境:win8上的用VM搭建的虚拟机:centos 2.6.32-431.el6.x86_64

场景:更改虚拟机文件的位置,之后重新启动后发现连接网络失败,通过ifconfig命令 发现网卡 没有eth0,

            并且 ,/etc/udev/rules.d/70-persistent-net.rules 与 /etc/sysconfig/network-scripts/ifcfg-eth0 中的配置均正常。

报错:执行:servicenetwork restart 命令报错如下:

Bringing up interface eth0:  

Error: Nosuitable device found: no device found for connection ‘ Systemeth0′.[FAILED]

解决方案:
1、备份:/etc/sysconfig/network-scripts/ifcfg-eth0 使用命令cp -a  [old_name] [bak_name]
2、删除/etc/sysconfig/network-scripts/ifcfg-eth0 和  /etc/udev/rules.d/70-persistent-net.rules 使用 rm -f XXX命令即可
3、重启系统 reboot
4、还原ifcfg-eth0 (ifconfig命令后eth0被重新启用)  cp -a[bak_name]  [old_name]
5、重启服务 成功。

 

0 0