vmware迁移centos网络错误解决

解决vmware centos迁移网络错误

故障现象

ifconfig 只有 lo,没有eth0。

service network restart eth0启动报错

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

解决办法

  • 打开 /etc/udev/rules.d/70-persistent-net.rules 找到eth1的mac地址

  • 修改 ifcfg-eth0 的配置,将DEVICE的值为eth1及HWADDR改为eth1的mac

    1
    2
    vim /etc/sysconfig/network-scripts/ifcfg-eth0
    service network restart