Home > System Tutorial > Linux > body text

Solve the problem that the network card configuration file cannot be found after adding a new network card in CentOS

WBOY
Release: 2024-06-21 08:04:48
Original
494 people have browsed it

After using the VMware Workstation virtual machine to install the CentOS7 virtual machine, there is a problem that CentOS 7 has no network card configuration file after adding a network card. After adding a second network card, after entering the CentOS 7 system, the network card configuration file cannot be seen.

After entering the CentOS7 system, use ip addr to check the status as follows:

I found that both ens33 and ens77 have IP addresses and can be used normally. ens33 uses a manually configured IP, and ens37 uses an IP address automatically obtained by dhcp, but ifcfg cannot be found in the /etc/sysconfig/network-scripts/ directory. -ens37 configuration file

Solve the problem that the network card configuration file cannot be found after adding a new network card in CentOS

Solution:

1. Use the nmcli con show command to view the UUID information of the network card and note down the UUID value

Solve the problem that the network card configuration file cannot be found after adding a new network card in CentOS

2. Use the ip addr command to view the network card information and note the MAC address of the ens37 network card

Solve the problem that the network card configuration file cannot be found after adding a new network card in CentOS

3. Copy the ifcfg-ens33 file in the /etc/sysconfig/network-scripts/ directory and name it ifcfg-ens37. Modify the configuration file again and pay attention to modifying the necessary hardware information.

Solve the problem that the network card configuration file cannot be found after adding a new network card in CentOS

4. Finally, restart the network card.

Solve the problem that the network card configuration file cannot be found after adding a new network card in CentOS

The above is the detailed content of Solve the problem that the network card configuration file cannot be found after adding a new network card in CentOS. For more information, please follow other related articles on the PHP Chinese website!

source:linuxprobe.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!