CentOS Linux解决Device eth0 does not seem to be present

在使用vmware迁移linux系统过程中,发现部署后的linux系统无法启动网卡

报错为

Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization

CentOS Linux解决Device eth0 does not seem to be present_第1张图片

错误原因,是因为linux网卡绑定了原mac地址导致

解决方法为

1.使用ifcnfig -a 查看当前主机mac地址

CentOS Linux解决Device eth0 does not seem to be present_第2张图片

2.修改eth0网卡硬件地址为当前地址

vi /etc/sysconfig/network-scripts/ifcfg-eth0

CentOS Linux解决Device eth0 does not seem to be present_第3张图片

保存退出

其实在network-scripts下查看是没有eth1网卡的

linux <wbr>centos <wbr>网卡错误 <wbr> <wbr>Device <wbr>eth0 <wbr>does <wbr>not <wbr>seem <wbr>to

3.删除70-persistent-net.rules文件

rm -rf /etc/udev/rules.d/70-persistent-net.rules

4.重启系统

reboot -h now

你可能感兴趣的:(exception)