重启网卡后:service network restart报:
Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]
用ifconfig查看发现缺少eth0,只有lo;用ifconfig -a查看发现多出了eth1的信息,我是由于换了台机子,硬盘用的原来的,导致没有eth0了
解决办法:
vim /etc/udev/rules.d/70-persistent-net.rules,查看ATTR{address}的值是否跟ifconfig -a里边eth1的 HWaddr(物理地址)值相等
如果相当,mv /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth1
vim /etc/sysconfig/network-scripts/ifcfg-eth1
修改下边两个参数的值
DEVICE=eth1
HWADDR=00:0C:29:9D:12:02
然后重启网卡
service network restart
环境:centos6.5
本文介绍了解决 CentOS 6.5 系统中因更换主机导致的网络配置问题,具体表现为重启网卡后 eth0 缺失。通过调整 udev 规则文件和 ifcfg 文件,将 eth1 映射为 eth0,最终成功恢复网络连接。
1772

被折叠的 条评论
为什么被折叠?



