" Device eth0 does not seem to be present, delaying initialization"

来源:互联网 发布:淘宝直播点赞花钱吗 编辑:程序博客网 时间:2024/06/06 02:10

错误:" Device eth0 does not seemto be present, delaying initialization"

是因为70-persistent-net.rule文件中的网卡名称与网卡配置文件(ifcfg-eth0)中的名称不一致造成的,即因名称不一致而找不到网卡eth0,所以网卡eth0不存在

解决一:

修改70-persistent-net.rule文件,将name修改为ifcfg-eth0文件中DEVICE的值,如下图:

然后重启系统 reboot

也可以修改ifcfg-eth0文件中DEVICE的值,修改此文件一般不需要重启系统,只需重启network service network restart

解决二:

直接删除70-persistent-net.rule文件然后重启系统

rm -f/etc/udev/rules.d/70-persistent-net.rule

reboot

 

或许还会报错:

Device eth0 hasdifferent MAC address than expected, ignoring

这是由于网卡mac地址配置错误导致的,即ifcfg-eth0文件中配置的网卡地址和实际硬件的mac地址不一致,

解决:修改ifcfg-eth0文件的mac配置,

查看eth0网卡的mac地址;ifconfig eth0

 

总结:以上错误大都发生在虚拟机迁移或更改网卡时,因为虚拟机迁移和改换网卡时网卡的配置文件还是原来的配置信息。

0 0
原创粉丝点击