When learning Linux, it is often necessary to clone multiple virtual machines to build an intranet environment. However, cloning the generated virtual machine Nic Mac error, but not the normal network.
After a search, finally found a solution:
1.ifconfig-a # Note the MAC address 00:0c:29:7b:93:9e
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/97/wKiom1WARViD-c_FAADn2jpFzIc455.jpg "title=" 1.png " alt= "Wkiom1warvid-c_faadn2jpfzic455.jpg"/>
2.vi/etc/udev/rules.d/70-persistent-net.rules
Change the default eth1 to Eth0, save
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/97/wKiom1WARaGw26B-AABhYP-yspw088.jpg "style=" float: none; "title=" 2.png "alt=" Wkiom1waragw26b-aabhyp-yspw088.jpg "/>
3.vi/etc/sysconfig/network-scripts/ifcfg-eth0 , fill in the MAC address you just recorded, and note that device is also "eth0"
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/93/wKioL1WAR1Di0PyCAADdtWCk_1w491.jpg "style=" float: none; "title=" 3.png "alt=" Wkiol1war1di0pycaaddtwck_1w491.jpg "/>
4. Restart Linux to resolve the issue.
Add:
Above we can get MAC address,>> append to/etc/sysconfig/network-scripts/ifcfg-eth0 via ifconfig |sed-n ' 1p ' |awk ' {print $} ' , and then modify it to save yourself from recording the MAC address.
VMware cloning Linux virtual Machine network card is not available online solution