centos:Error: No suitable device found: no device found fo
引:http://www.91rhca.com/1911.html
系统重启后不能识别网卡,service network restart 重启网卡后显示如下:[root@localhost ~]# service network restart Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth1: Error: No suitable device found: no device found for connection 'eth1'. [FAILED]
初步判定可能是MAC地址没写对。
解决办法:
1、进入/etc/sysconfig/network-scripts/目录,查看ifcfg-eth1配置信息,发现正确无误
2、查看/etc/udev/rules.d/70-persistent-net.rules,将其的MAC信息与ifcfg-eth0进行对比
3、然后通过查看/etc/udev/rules.d/70-persistent-net.rules中eth1的MAC信息,将其与ifcfg-eth1中的MAC信息一致。
4、重启网卡servicenetworkrestart