1.修改 /etc/sysconfig/network-script/ifcfg-eth0
2.删掉UUID HWADDR
所在的行
3.配置静态地址
然后:
rm -rf /etc/udev/rules.d/70-persistent-net.rules
/etc/sysconfig/network-script/ifcfg-eth0
UUID HWADDR
所在的行然后:
rm -rf /etc/udev/rules.d/70-persistent-net.rules
reboot
转载于:https://my.oschina.net/hengbao666/blog/1632118