Home >Operation and Maintenance >CentOS >How to solve the problem that the network card configuration file cannot be found after adding a new network card in CentOS
The following tutorial column of centos will introduce to you how to solve the problem that CentOS cannot find the network card configuration file after adding a new network card. I hope it will be helpful to friends in need!
After using the VMware Workstation virtual machine to install the CentOS7 virtual machine, there is a problem that CentOS 7 has no network card configuration file after adding a network card. After adding a second network card, after entering the CentOS 7 system, the network card configuration file cannot be seen.
After entering the CentOS7 system, use ip addr to check the status as follows:
It is found that ens33 and ens77 both have IP addresses and can be used normally. ens33 uses manual IP configuration and ens37 uses The IP address automatically obtained by dhcp, but the ifcfg-ens37 configuration file cannot be found in the /etc/sysconfig/network-scripts/ directory
Solution:
1. Use the nmcli con show command to view the UUID information of the network card and note down the UUID value
2. Use the ip addr command to view the network card information and note down the MAC of the ens37 network card Address
3. Copy the ifcfg-ens33 file in the /etc/sysconfig/network-scripts/ directory and name it ifcfg-ens37, and then modify the configuration file. Pay attention to modify the necessary hardware information.
4. Finally, restart the network card.
Original text from: https://www.linuxprobe.com/centos-network-scripts.html
The above is the detailed content of How to solve the problem that the network card configuration file cannot be found after adding a new network card in CentOS. For more information, please follow other related articles on the PHP Chinese website!