Home  >  Article  >  Operation and Maintenance  >  Centos system does not display network card information

Centos system does not display network card information

王林
王林Original
2020-03-19 16:33:372770browse

Centos system does not display network card information

Problem:

After installing CentOS 6.4 on the virtual machine, ifconfig only displays the information of the lo interface and does not display the information of the eth0 network card. Enter the /etc/sysconfig/network-scripts/ directory and you can see the ifcfg-eth0 file.

Solution:

1. Open the ifcfg-eth0 configuration file

(Recommended tutorial: centos usage tutorial)

The command is as follows:

vim ifcfg-eth0

2. Modify the configuration

Change the "ONBOOT=no" option to "ONBOOT=yes"

3. Save the file and exit.

4. Restart the network service

The command is as follows:

service network restart

Recommended related video tutorials: linux video tutorial

The above is the detailed content of Centos system does not display network card information. 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