Get the App
SLTechnology News&Howtos  ›  Servers  › 

What if the centos7 network card cannot be started?

Shulou Source: shulou.com Published: 2022-06-01 10:52:05 10月06日 Update

This article mainly explains the "centos7 network card can not start what to do", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "what to do if the centos7 network card can not start"!

Restart the network card

Systemctl restart network / / restart the network card

Return error:

Restarting network (via systemctl): Job for network.service failed. See 'systemctl status network.service' and' journalctl-xn' for details.

Check the status of the network card

Systemctl status network.service

An error will be returned:

Rtnetlink answers file exists

Solution one

For most people, this error is due to the mac conflict of the network card caused by virtual machine cloning (because I am the virtualized environment of VMware, and multiple servers are cloned through modules), modify the new mac of HWADDR= in ifcfg-eth0 or delete and restart the machine. It is best to delete or comment out.

Basically, more than 80% of the network card startup problems can be solved in this way.

View the mac method:

Ip addr

Solution two

If the graphical interface is installed and the NetworkManager service is not closed, it will also cause the network card service to fail to start. (generally rare)

Systemctl stop NetworkManager.service / / shut down the service systemctl disable NetworkManager.service / / stop booting self-starting

Solution three

/ etc/udev/rules.d/70-persistent-ipoib.rules mac conflict between eth0 and eth2 in this file or conflict with other network cards, delete the file and restart the machine

Solution 4

Add the mac address of eth0 to / etc/udev/rules.d/60-net.rules:

SUBSYSTEM== "net", ACTION== "add", SYSFS {address} = = "B0:d5:47:31:b5:45", IMPORT= "/ lib/udev/rename_device% k eth0"

Just restart the machine.

Thank you for your reading, the above is the "centos7 network card can not start what to do" content, after the study of this article, I believe you can not start the centos7 network card how to do this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Network cards methods how to do services machines conflicts learning content that is files problems rare graphics addresses multiple people multiple sets ideas situations articles methods Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Redmi NVidia Xiaomi Shulou Information