Home  >  Article  >  Operation and Maintenance  >  centos7 cannot recognize new network card after adding it

centos7 cannot recognize new network card after adding it

王林
王林Original
2020-03-31 14:48:073873browse

centos7 cannot recognize new network card after adding it

Problem:

centos7 adds a new network card, but the system does not recognize it.

Solution:

1. Get the real mac

#ip addr

of the new network card (recommended tutorial: centos tutorial)

2. Copy eth0 to eth1 and modify the configuration file

#cd /etc/sysconfig/network-scripts
#cp ifcfg-eth0 ifcfg-eth1
#vim ifcfg-eth1

The contents to be modified are:

HWADD Obtain

UUID through ip addr If the UUID is not found, You can comment out

NAME and change it to the current network card name eth1

DEVICE Change it to the current network card name eth1

IPADDR,GATEWAY, etc.

Save and exit.

3. Restart the network card.

#systemctl restart network

Related video tutorial recommendations: linux video tutorial

The above is the detailed content of centos7 cannot recognize new network card after adding it. 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