After the VM is cloned, the network card becomes inaccessible due to a problem. after cloning, use ipaddrshow to find that the network card name is eth1 and not the default eth0. view: in the/etc/sysconfig/network-scripts/directory, you can only see the cause of eth0 Nic failure: due to the cloned system
After the VM is cloned, the network card becomes unavailable due to a problem;
After cloning: The ip addr show shows that the nic name is eth1, not the default eth0.
View: only the eth0 Nic can be seen in the/etc/sysconfig/network-scripts/directory.
Fault cause:
Because of the cloned system, the virtual machine only modifies the virtual machine name MAC and so on, and adds a line of device name eth1 to the/etc/udev/rules. d/70-persistent-net.rules file,
Solution:
1. modify the/etc/udev/rules. d/70-persistent-net.rules file.
Delete eth0 information. Modify the name of the second eth1 Nic to eth0.
2. modify the file/etc/udev/rules. the MAC address in d/70-persistent-net.rules and the MAC address in/etc/sysconfig/network-scripts/ifcfg-eth0 must correspond to the MAC address of the VM Nic.