Problem restoration:
After installing the CentOS7 virtual machine using the VMware Workstation virtual machine, there is a problem that CentOS 7 has no network card configuration file after adding the network card. Add a second network card. In the future, after entering the CentOS 7 system, the network card configuration file will not be visible.
Solution:
1. Use the nmcli con show command to check the UUID information of the network card and write down the UUID value
2. Use the ip addr command to view the network card information and note the MAC address of the ens37 network card
3. Copy the ifcfg-ens33 file in the /etc/sysconfig/network-scripts/ directory copy and name it ifcfg-ens37, re-modify the configuration file, and pay attention to modifying the necessary hardware information.
4. Restart the network card
Recommended tutorial: centos tutorial
The above is the detailed content of What should I do if centos cannot find the network card configuration file?. For more information, please follow other related articles on the PHP Chinese website!