Home >Operation and Maintenance >CentOS >The network card cannot be started under centos7

The network card cannot be started under centos7

王林
王林Original
2020-04-03 11:36:573072browse

The network card cannot be started under centos7

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn