版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/shuideyidi/article/details/40305219
##重启网络,发生错误
[root@localhost Desktop]# service network restart
提示:Bringing up interface eth0: Error: No suitable device found: no device found
##执行ifconfig命令
[root@localhost Desktop]# ifconfig
## 打开/etc/udev/rules.d/70-persistent-net.rules文件
[root@localhost Desktop]# vim /etc/udev/rules.d/70-persistent-net.rules
我们会发现这 eth0 的网卡物理地址和电脑的网卡不匹配,才会出现开始的错误信息提示,可以把 eth1 中信息 copy 到 eth0中。
然后重启eth0就可以找到与之匹配的网卡设备。
##重启电脑
[root@localhost Desktop]# init 6
或者
[root@localhost Desktop]# reboot
##重启网络
[root@localhost Desktop]# service network restart