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]

linux 解决 Device eth0 does not seem to be present

解决办法:
首先,打开/etc/udev/rules.d/70-persistent-net.rules内容如下面例子所示:
vi /etc/udev/rules.d/70-persistent-net.rules 

linux 解决 Device eth0 does not seem to be present

记录下,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
 linux 解决 Device eth0 does not seem to be present
重启网络
service network restart

linux 解决 Device eth0 does not seem to be present

 linux 解决 Device eth0 does not seem to be present

 

解决 

posted @ 2019-01-10 15:44 路迢迢 阅读(...) 评论(...) 编辑 收藏

相关文章: