CentOS network card not displayed problem

Article directory

1.Problem description

 ifconfig下看不到ens33网卡了。
 systemctl status network   #查看网卡状态报下面的问题

Insert image description here
There are three solutions mentioned on the Internet:
The first one: There is a conflict with the NetworkManager service. This is easy to solve. Just close the NetworkManager service directly, service NetworkManager stop, and prohibit starting chkconfig NetworkManager off at boot. Just restart after that. (The NetworkManager service is a configuration tool for managing network cards on the visual interface) If it is different from what is configured in the network, there will be a conflict. Here, close NetworkManager and set it not to start at boot. This is how I solved it here.
systemctl stop NetworkManager
systemctl NetworkManager disable

The second type: does not match the MAC address of the configuration file. This can be easily solved by directly modifying the MAC address of the /etc/udev/rules.d/70-persistent-net.rules file and /etc/sysconfig/network-scripts/ Just like ifcfg-eth0. (This method should be used on Centsos6. Currently, there is no xxx.rules file on centos7)

The third type: ip addr flush dev eth0

Final solution:
Here is the first method I adopt: execute the following command on CenOS7:
systemctl status NetworkManager #Check the status first
systemctl stop NetworkManager #Close the service
systemctl disable NetworkManager #Permanently shut down the service to prevent self-starting at
boot reboot #Restart the machine
ifconfig #Check again whether the network card is displayed.

Guess you like

Origin blog.csdn.net/adminstate/article/details/133384757