After cloning the virtual machine, network card problems, resulting in the inability to surf the Internet;
After cloning: Use IP addr show to find the NIC name eth1 is not the default eth0
View:/etc/sysconfig/network-scripts/directory can only see the ETH0 network card
Causes of failure:
Because of the cloned system, the virtual machine just modifies the VM's name Mac, and adds a line name eth1 to the/etc/udev/rules.d/70-persistent-net.rules file.
Workaround:
1. Modify the/etc/udev/rules.d/70-persistent-net.rules file
Delete the information about eth0. The name of the network card that modifies the second eth1 is eth0.
2. Modify the MAC address and/etc/sysconfig/network-scripts/in the file/etc/udev/rules.d/70-persistent-net.rules The MAC address in the Ifcfg-eth0 corresponds to the MAC address of the virtual machine NIC.
This article is from "Rookie Diary" blog, please make sure to keep this source http://zkxfoo.blog.51cto.com/1605971/1608361
Problem solving method of network after cloning CentOS with Vmwaer