linux 解决 Device eth0 does not seem to be present
在虚拟机中安装cent os系统,然后配置网络
执行命令ifconfig
没有看到eth0的信息;
重启网卡报错:
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]
解决办法:
首先,打开/etc/udev/rules.d/70-persistent-net.rules内容如下面例子所示:
vi /etc/udev/rules.d/70-persistent-net.rules
记录下,eth1网卡的mac地址00:1c:42:d3:94:20
打开/etc/sysconfig/network-scripts/ifcfg-eth0
vi /etc/sysconfig/network-scripts/ifcfg-eth0
将 DEVICE="eth0" 改成 DEVICE="eth1" ,
将 HWADDR=*** 改成上面的mac地址 HWADDR=00:1c:42:d3:94:20
![](https://i-blog.csdnimg.cn/blog_migrate/361a0b59ef1b3733df2d00a358554dd2.png)
重启网络
service network restart
解决