Solves the problem that the system cannot access the Internet after cloning Linux in the virtual machine. __linux

Source: Internet
Author: User

I recently studied Linux, want to clone more than one CentOS to practice in Linux installation software, configure the environment. Because the system is not very familiar with, want to maintain a pure version, if the system play bad on the delete and then clone a continue configuration to save time. Later found that the cloned system can not surf the Internet, find a solution on the Internet. Summarized as follows:

Feeling is the cause of cloning, will be the original Mother machine network card information saved for eth0, and the new machine start will produce find their own network card information, generate eth1. However, the other network configuration of the machine is still unchanged, so will not be eth1 boot, and eth0 did not find, specific will be prompted because of MAC address error and therefore can not access the Internet.

All we have to do is fight first.

1 Ifconfig-a

Find your MAC address. Generally for hwaddr 00:0c:29:xx:xx:xx

Then remember them first.

Found it

1 Cd/etc/udev/rules. D

Under the 70-persistent-net.rules.

1 VI 70-persistent-net.rules

You should see two PCI NIC information in the cloned machine. One for eth0 and one for eth1.

Delete the text from #pci to Name= "eth0". Then change the eth1 back to eth0.

: Wq

Save exit.


Then change the configuration information for the network adapter.

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

Found a line of hwaddr=

The MAC address of the original mother machine is behind the = number.

Change to the MAC address of the computer above, and then reboot the machine. will be able to surf the Internet.

1 Service Network restart
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.