虚拟机克隆后无法使用网卡-centos
一、centos6解决方法
删除HAWADDR和UUID
sed -i '/UUID/d' /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i '/HWADDR/d' /etc/sysconfig/network-scripts/ifcfg-eth0
清除网卡相关信息
> /etc/udev/rules.d/70-persistent-net.rules
重启
reboot
2023-01-25 20:57:01
删除HAWADDR和UUID
sed -i '/UUID/d' /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i '/HWADDR/d' /etc/sysconfig/network-scripts/ifcfg-eth0
清除网卡相关信息
> /etc/udev/rules.d/70-persistent-net.rules
重启
reboot