Problem:
Restart the network card
systemctl restart network
Return error:
Restarting network (via systemctl): Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.
Checking the network card status at this time
systemctl status network.service
will return an error: rtnetlink answers file exists
Cause analysis:
Network card mac conflict caused by virtual machine cloning.
Solution:
1. Check mac
ip addr
2. Open ifcfg-eth0 network card configuration file
3. Modify HWADDR = new mac or Delete and restart the machine. It is best to delete or comment out.
4. Restart the system
Recommended related tutorials: centos tutorial
The above is the detailed content of The network card cannot be started under centos7. For more information, please follow other related articles on the PHP Chinese website!