How to modify the network adapter after VMware Virtual machine cloning CentOS 6.5

Source: Internet
Author: User

The virtual machine is installed. After the CentOS6.5 system, the purified system clones several out to facilitate the later test. Cloning step is very simple, the problem after cloning is the cloned Nic mac address and the original system Mac address, there will be a conflict in the LAN, you need to change the cloned MAC address.

explain: in fact, after the clone system has two network cards eth0 and eth1, the actual effect is eth1,eth0 is cloned over. The clone system will regenerate a mac address because the system will become eth1 in eth0 plus 1.

Here's how it works:

Software Environment: Vmware Workstation 10.0 Virtual machine CentOS 6.5 physical machine Windows7

1, First enter the original system, use the command to view the network card information

#ifconfig

default system boot does not load network card, see eth0 information

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/5B/wKiom1Rl1E-jxFceAADHDKY75LI380.jpg "title=" 1.jpg " alt= "Wkiom1rl1e-jxfceaadhdky75li380.jpg"/>

Run command

# Vi/etc/sysconfig/network-scripts/ifcfg-eth0

View The MAC address of the eth0 network card

Device=eth0hwaddr=00:0c:29:16:f4:f0type=ethernetuuid=0b1f4512-cefa-4a9e-ae85-adb2ac2a9903onboot=nonm_ Controlled=yesbootproto=dhcp

Modify this item Onboot=yes after setting up, the network card information will be loaded

edit complete,ESC key exit, enter:Wq Save exit.


2, the same steps into the clone system, check the network card address, found the same MAC address

Perform

#/etc/init.d/network Restart

Restart Network Service

hint failed failed

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/5B/wKiom1Rl1HChhyGIAACIWQxjBSM534.jpg "title=" 2.jpg " alt= "Wkiom1rl1hchhygiaaciwqxjbsm534.jpg"/>

3. Edit the network card device

# Vi/etc/udev/rules.d/70-persistent-net.rules

The following appears, you will see 2 NICs eth0 and eth1,eth0 for the clone system,eth1 for the regeneration

# PCI device0x1022:0x2000 (pcnet32) subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:16:f4:f0 ", attr{type}==" 1 ", kernel==" eth* ", Name=" eth0 "# PCI device0x1022:0x2000 (pcnet32) subsystem==" NET ", action==" add ", drivers== "? *", attr{address}== "00:0c:29:52:45:97", attr{type}== "1", kernel== "eth*", name= "eth1"

Front plus # comment out the first network card, change the 2 network card is eth0, record the mac address.

# PCI device0x1022:0x2000 (Pcnet32)

# subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:16:f4:f0", attr{type}== "1", kernel== "eth*" , name= "Eth0"

# PCI device0x1022:0x2000 (Pcnet32)

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:52:45:97", attr{type}== "1", kernel== "eth*", name= "eth0"

edit complete,ESC key exit, enter:Wq Save exit.


4. Implementation

#/etc/init.d/network restart

Restart Network Service

Or the hint failed,

#reboot

The problem with rebooting the system is solved.


5. After rebooting the system, run the command

#vi/etc/sysconfig/network-scripts/ifcfg-eth0

Modify MAC address "00:0c:29:16:f4:f0" for "00:0c:29:52:45:97" save exit.

Perform

#/etc/init.d/network Restart

Restart Network Service

It's not going to fail now.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/59/wKioL1Rl1R6yT6KyAAB6uP6ujJY141.jpg "title=" 3.jpg " alt= "Wkiol1rl1r6yt6kyaab6up6ujjy141.jpg"/>


How to modify the network adapter after VMware Virtual machine cloning CentOS 6.5

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.