Problem Description:
With the VMware Workstation virtual machine, after installing the CentOS7 virtual machine (originally with only one Nic Ifcfg-ens33), a new NIC is added again.
After entering the CENTOS7 system, use the IP addr to view the status as follows:
Ens33 and ens77 are found to have an IP address, and can be used normally, ENS33 use manual configuration ip,ens37 using the IP address automatically obtained by DHCP, but/etc/sysconfig/network-scripts/ IFCFG-ENS37 configuration file not found in directory
Solution:
1. Use the Nmcli con Show command to view the UUID information for the NIC and note 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 from the/etc/sysconfig/network-scripts/directory and name it ifcfg-ens37, re-modify the configuration file, and note the necessary hardware information.
4. Finally restart the network card.
CentOS Add new NIC Network-scripts directory cannot find the NIC configuration file