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!