我要评分
获取效率
正确性
完整性
易理解

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.

  1. 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.
    1
    ip a
    
  2. View the UUID of the external NIC and replace the corresponding value in the copied configuration file.
    1
    nmcli con show
    
  3. Restart the network.
    1
    service network restart