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.
Find your MAC address. Generally for hwaddr 00:0c:29:xx:xx:xx
Then remember them first.
Found it
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 |