I installed a Linux system with a virtual machine, and suddenly wanted to clone a server. After cloning, I found that I could not access the Internet. How to solve it?

I installed a Linux system with a virtual machine, and suddenly wanted to clone a server. After cloning, I found that I could not access the Internet. How to solve it?  

 Answer:
    a. Edit the network card configuration file /etc/sysconfig/network-scripts/ifcfg-eth0, and delete the two lines of HWADDR and MAC address.
    b. Modify the file /etc/udev/rules.d/70-persistent-net.rules, delete the previous line where eth0 is located, and change the next line eth1 to eth0
    c, reboot

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324979048&siteId=291194637