Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if the centos7 network card cannot be started?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report