Centos system does not display network card information

王林
Release: 2020-03-19 16:33:37
Original
2774 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
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 admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template