标签:The 解决办法 conf 问题: vmw 地址 res mac 清空
克隆虚拟机后,启动网卡ifup eth0 (/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查看网卡信息,发现没有IP地址,只有回环127.0.0.1。
克隆的机器的mac地址和主机名都和源主机相同。
编辑eth0配置文件,删除HWADDR和UUID。
[root@NiY ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:0C:29:39:F5:66 #删除这行
TYPE=Ethernet
UUID=75d42e65-1e14-49fb-b304-011a6cee6678 #删除这行
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp
清空70-persistent-net.rules 文件(该文件作用是将网卡设备名与mac地址对应)
[root@NiY ~]# > /etc/udev/rules.d/70-persistent-net.rules
重启系统reboot
标签:The 解决办法 conf 问题: vmw 地址 res mac 清空
原文地址:https://www.cnblogs.com/xiaojing-/p/10459334.html