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

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

王林
王林Original
2020-03-19 16:12:493872browse

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

Problem:

CentOS cannot find the network card configuration file after adding a new network card.

After installing CentOS6.5 using the VMware Workstation virtual machine, the IP of the computer will always change.

Solution:

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

nmcli con

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

(recommended Tutorial: centos usage tutorial)

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

ip addr

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

3. Copy the ifcfg-eth0 file in the /etc/sysconfig/network-scripts/ directory and name it ifcfg-eth5.

cd /etc/sysconfig/network-scripts/
cp ifcfg-eth0 ifcfg-eth5

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

4. Re-modify the configuration file, pay attention to modify the necessary hardware information.

vi ifcfg-eth5

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

5. Restart the network card.

service network restart

Recommended related video tutorials: linux video tutorial

The above is the detailed content of What should I do if the centos system 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