VMware cloning CentOS modifying MAC address

Source: Internet
Author: User

Failure background:

After cloning virtual machine, even not the Internet, ifconfig view, found that the network card eth0 did not start, so ifconfig eth0 up eth0 network card, the results can not start, enter/etc/sysconfig/network-scripts/ Ifcfg-eth0 view, found that the MAC address and IP address is the same as the original, so modify the IP service network restart Restart network services, the discovery prompt bringing up interface eth0: Device eth0 does not seem to be present, Delayin initialization. Then decided to modify the MAC address.


Causes of failure:

Because of the cloning of virtual machines, VMware just modified the name of the virtual machine and other information, and did not modify any information on the virtual hard disk, causing the network card after cloning the MAC address and the operating system recorded in the MAC address does not match, causing eth0 to start up. The operating system records the addition of a new network card, the name Eth1,mac address of the new network card is the new MAC address assigned by VMware

Workaround:

Go to/etc/udev/rules.d/70-persistent-net.rules file

Record the MAC address of the eth1 00:0c:29:31:9a:0a

650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M01/88/3B/wKioL1fsifPj8Pb8AAR2YTjr5OA257.jpg "title=" 1.jpg " alt= "Wkiol1fsifpj8pb8aar2ytjr5oa257.jpg"/>

Modify the MAC address in/etc/sysconfig/network-scripts/ifcfg-eth0 Hwaddr to

/etc/udev/rules.d/70-persistent-net.rules the modified eth1 MAC address,

Nic name device changed to Eth1, save exit.

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M02/88/3B/wKioL1fsiifzxXQcAACBOB2qOMc707.jpg "title=" 2.jpg " alt= "Wkiol1fsiifzxxqcaacbob2qomc707.jpg"/>

Service Network restart restart the networking service.

Ifconfig View IP To resolve the issue.


VMware cloning CentOS modifying MAC address

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.