Home >Operation and Maintenance >CentOS >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!