第一步
vim /etc/sysconfig/network-scripts/ifcfg-eth0
注释掉HWADDR一行
第二步
service network restart
提示有错误
第三步
vim /etc/udev/rules.d/70-persistent-net.rules
注释掉eth0一行
修改eth1为eth0
第四步
service network restart
提示有错误
第五步
重启计算机 reboot
第六步
vim /etc/sysconfig/network-scripts/ifcfg-eth0
修改ip地址
service network restart
第7步
ifconfig,记下mac地址
vim /etc/sysconfig/network-scripts/ifcfg-eth0
修改mac地址为ifconfig中的mac地址
service network restart
【完】