device eth0 does not seem to be present解决

来源:互联网 发布:linux c mmap 编辑:程序博客网 时间:2024/06/11 03:15

问题:

红帽Linux使用命令/etc/init.d/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]

用ifconfig查看发现缺少eth0,只有lo;用ifconfig -a查看发现多出了eth1的信息。

解决:

# vi /etc/sysconfig/network-scripts/ifcfg-eth0
将eth0的mac地址改为/etc/udev/rules.d/70-persistent-net.rules中的mac地址,同时改变其DEVICE名称为eth1,再重启网络即可。
0 0