Home  >  Article  >  Operation and Maintenance  >  What should I do if centos cannot find the network card configuration file?

What should I do if centos cannot find the network card configuration file?

王林
王林Original
2020-05-17 10:44:303479browse

What should I do if centos cannot find the network card configuration file?

Problem restoration:

After installing the CentOS7 virtual machine using the VMware Workstation virtual machine, there is a problem that CentOS 7 has no network card configuration file after adding the network card. Add a second network card. In the future, after entering the CentOS 7 system, the network card configuration file will not be visible.

Solution:

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

What should I do if centos cannot find the network card configuration file?

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

What should I do if centos cannot find the network card configuration file?

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

What should I do if centos cannot find the network card configuration file?

4. Restart the network card

What should I do if centos cannot find the network card configuration file?

Recommended tutorial: centos tutorial

The above is the detailed content of What should I do if centos cannot find the network card configuration file?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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 admin@php.cn