Sometimes several virtual machines are cloned, and a unique ID of the network card needs to be changed after cloning, otherwise the Internet cannot be accessed, and the following methods can be adopted:

1. Edit file /etc/udev/rules.d/70-persistent-net.rules

Look at the first line and change the cloned new eth1 to eth0

2. Edit /etc/sysconfig/network-scripts/ifcfg-eth0

Restart the network service after replacing the new MAC address

three Finally, the server must be rebooted to take effect~