A solution that fails to start a network card or is unable to access the Internet after cloning a virtual machine via CentOS

Source: Internet
Author: User

The virtual machine uses VMware Workstation, the network is configured for NAT, and after cloning, the Ifconfig view shows only the LO network card, ifconfig-a can be viewed to eth0, but no IP address.

We use the dhclient command, get to the IP, can be used normally. However, if you restart, you will still lose the IP information.


A complete solution:

modify /etc/udev/rules.d/70-persistent-net.rules   eth0 line, The MAC address of the machine before cloning is also recorded here. But the newly started system Mac has changed, Change Name= "eth1" to "eth0", ATTR tagged mac address, this is the Mac assigned by the virtual machine to this virtual network card, replace it with the Mac above  /etc/sysconfig/network-scripts/ Mac   in Ifcfg-eth0 (default should automatically update to new MAC address)

Direct restart of service network restart is not good and requires restarting the machine to take effect.



This article is from the "Riding" blog, make sure to keep this source http://dezhou.blog.51cto.com/332858/1763744

A solution that fails to start a network card or is unable to access the Internet after cloning a virtual machine via CentOS

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.