In the WMware virtual machine experiment, will use more than one virtual machine, in order to save time, direct cloning, but after cloning CentOS network card on MAC address and the original system MAC address conflict, resulting in the inability to connect LAN host, need to configure the network card, virtual machine to normal use.
1. cloning a virtual machine
Right click on virtual machine-manage-clone ..... (Super simple, not detailed here)
2. View the network card device
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8D/0B/wKiom1iDN13C9-fXAACv9pdWxA0987.png-wh_500x0-wm_3 -wmp_4-s_4171128347.png "title=" A.png "alt=" Wkiom1idn13c9-fxaacv9pdwxa0987.png-wh_50 "/>
3. Edit the NIC device file
[Email protected] ~]# Vim/etc/udev/rules.d/70-persistent-net.rules
Delete or comment the network card device information of the source system, modify the current NIC device information as eth0
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8D/08/wKioL1iDN2-Rn-YMAACcQoS7cnQ321.png-wh_500x0-wm_3 -wmp_4-s_770363201.png "title=" B.png "alt=" Wkiol1idn2-rn-ymaaccqos7cnq321.png-wh_50 "/>
4. Modify the NIC configuration file to change the MAC address to 00:0c:29:d7:e7:ab
[Email protected] ~]# Vim/etc/sysconfig/network-scripts/ifcfg-eth0
Modified: Hwaddr=00:0c:29:d7:e7:ab
5. Restart the network service
[[Email protected] ~] #service Network restart
6. View network information
[[Email protected] ~] #ifconfig
The eth1 is displayed, but the device name has been changed and the NIC module needs to be restarted or the system will be restarted.
7. Restart the NIC module
[[Email protected] ~] #modprobe-R e1000 # # #卸载模块
[[Email protected] ~] #modprobe e1000 # # #装载模块
8. Check the network information, the display is eth0, the network card will work properly.
This article from "Rookie of the World" blog, please be sure to keep this source http://guoxh.blog.51cto.com/10976315/1893580
Nic modification method after VMware cloning Centos6.5