CentOS VMware Virtual machine copy after IP address and configuration file does not match

Source: Internet
Author: User


VMware installs CentOS virtual machine, copy to other machine will find the IP address and configuration file does not match.

Workaround:

  1. Editing a configuration file

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

  2. Find the row where the eth0 is located (if more than one eth0 is commented out, keep only one eth0) as follows:

    subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:ac:24:d2", attr{type}== "1", kernel== "eth*" , name= "Eth0"

  3. Click Vmware>vm>settings> to select the NIC >advanced, you will see the MAC address and replace it with the MAC address in the above content.

  4. To edit the network card configuration file

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

  5. Replace the MAC address, configure the IP.

  6. Restart the CentOS virtual machine.


This article from the "Old Scholar" blog, reproduced please contact the author!

CentOS VMware Virtual machine copy after IP address and configuration file does not match

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.