Resolved the physical address error of the cloned CentOS Nic!
The physical address of the cloned CentOS Nic is incorrect!
To change the IP address at startup, restart the service: service network restart displays the following prompt:
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface eth0: Error: No suitable device found: no device found for connection 'System eth0'. [FAILED]
Why is there no eth0?
Ifconfig does not exist. It is eth1 and the hardware address has changed. Therefore:
Vim/etc/udev/rules. d/70-persistent-net.rules
Change eth1 to eth0. The error is still prompted after restart.
If ifconfig is already eth0, the fault should be in the configuration file:
Check it out:
[Linux @ centos ~] $ Cat/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE = eth0
HWADDR = 08: 00: 27: 4f: 47: 15
TYPE = Ethernet
UUID = 122331fc-6c4a-4fe1-9fab-b11f46156b59
ONBOOT = yes
NM_CONTROLLED = yes
# BOOTPROTO = dhcp
BOOTPROTO = static
IPADDR = 192.168.1.3
NETMASK = 255.255.255.0
NETWORK = 192.168.1.1
BROADCAST = 192.168.1.255
The physical address of the nic and the new physical address of the VM Nic do not match. Change it to the mac address obtained by using ifocnfig-a. After the restart, everything will be OK.