Home > Operation and Maintenance > CentOS > centos cannot recognize new network card after adding it

centos cannot recognize new network card after adding it

王林
Release: 2020-04-02 14:06:42
Original
2666 people have browsed it

centos cannot recognize new network card after adding it

Solution:

1. Get the real mac of the new network card

#ip addr
Copy after login

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

3. Modify the following content:

HWADD    通过ip addr获取
UUID     若没有查到UUID,可以注释掉
NAME     改为当前的网卡名eth1
DEVICE     改为当前的网卡名eth1
IPADDR
GATEWAY
Copy after login

Save and exit.

4. Restart the network card

#systemctl restart network
Copy after login

Recommended related tutorials: centos tutorial

The above is the detailed content of centos 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