1. Modify the configuration file
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Device=eth0bootproto=Nonehwaddr=00:0C:29:20:CB:81ipv6init=Yesnm_controlled=yesonboot=yestype=ethernet#uuid="1ea05a64-a9b8-4093-a2c2-de7a9fa2add0"ipaddr= 10.10.1.19netmask=255.255. 252.0dns2=1.2. 4.8gateway=10.10. 0.1dns1=8.8. 8.8userctl=no
Service Network restart
Error One:
Error:no suitable device Found:no device found for connection "System eth0"
Workaround:
1. Delete the/etc/udev/rules.d/70-persistent-net.rules file and restart the system.
2, if the above does not work, then to see the Ifcfg-eth0 file in the hwaddr is correct, changed to the correct hwaddr "Ifconfig view the correct hwaddr".
I was using these two methods to solve problems online.
Error Two:
Determining if IP address is already on use for device eth0
Solution:
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Modify method
Add arpcheck=no to the NIC configuration file
Virtual machine only IPV6, no IPv4