虚拟机被玩崩了,hadoop重装过程中使用了多个虚拟机来模拟集群。只配置了主机的各项参数,其他的节点(主机)是克隆主机克隆粗来的。克隆完成打开以后,首先修改了其IP,然后网络服务重启(service network restart)就报错了:No suitable device found : no device found for connection 'System eth0'.如下图:

service network restart报错:No suitable device found : no device found for connection 'System eth0'.

我对该问题的解决方案是:删除了该文件后重启,如下图:

service network restart报错:No suitable device found : no device found for connection 'System eth0'.

然后#reboot

重启后再次查看该文件(因为重启后系统自动补了该文件),记录该文件的ATTR{adress字段}:

service network restart报错:No suitable device found : no device found for connection 'System eth0'.

再去编辑# vi /etc/sysconfig/network-scripts/ifcfg-eth0 文件,修改它的HWADDR,保持和上述文件的ATTR{address}一致即可

service network restart报错:No suitable device found : no device found for connection 'System eth0'.

然后重启网络服务:#service network  restart

service network restart报错:No suitable device found : no device found for connection 'System eth0'.

网络服务就OK了,ping其他节点,ping自己windows的ip,ping百度等都可以了

相关文章: