CentOS Add new NIC Network-scripts directory cannot find the NIC configuration file

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.