The ifcfg-[NIC name] File Sometimes Does Not Exist in the /etc/sysconfig/network-scripts Directory After an External NIC Is Connected
Symptom
After an external NIC is connected, the ifcfg-[NIC name] file does not exist in the /etc/sysconfig/network-scripts directory.
Key Process and Cause Analysis
None
Conclusion and Solution
The information about the NICs on the same server is the same except for NAME, UUID, and DEVICE.
- Copy the configuration file of a NIC. View the NAME and DEVICE values of the external NIC, and replace the corresponding values in the copied configuration file.
1ip a - View the UUID of the external NIC and replace the corresponding value in the copied configuration file.
1nmcli con show
- Restart the network.
1service network restart
Parent topic: Others