Remove the kernel’s networking interface rules file so that it can be regenerated
# rm -f /etc/udev/rules.d/70-persistent-net.rules
Restart the VM
# reboot
UPDATE your interface configuration file
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Remove the MACADDR entry or update it to the new MACADDR for the interface (listed in this file: /etc/udev/rules.d/70-persistent-net.rules).
Remove the UUID entry
Save and exit the file
Restart the networking service
# service network restart
Modify hostname
# vi /etc/sysconfig/network
# vi /etc/hosts
change the value of "localhost.localdomain"
VM克隆CentOS后设置IP
猜你喜欢
转载自lawrencej.iteye.com/blog/2218720
今日推荐
周排行