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

报错为

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

Device_eth0_does_not_seem_to_be_present__delaying_initialization解决办法_网卡

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

解决方法为

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

 

Device_eth0_does_not_seem_to_be_present__delaying_initialization解决办法_网卡_02

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

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

Device_eth0_does_not_seem_to_be_present__delaying_initialization解决办法_硬件_03

保存退出

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

Device_eth0_does_not_seem_to_be_present__delaying_initialization解决办法_linux_04

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

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

4.重启系统

reboot h now