centos7 cannot recognize new network card after adding it

王林
Release: 2020-03-31 14:48:07
Original
3874 people have browsed it

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
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template