Home >Operation and Maintenance >CentOS >How to check how many network cards the hardware has in centos
How to check how many network cards the hardware has in centos: 1. Use the ip command to check the network card information, the syntax is "ip add"; 2. Use the ifconfig command to check the network card information. This command is used to display or set the network device. , the syntax is "ifconfig".
The operating environment of this article: centos 6.4 system, Dell G3 computer.
Check the network card information
You can check the network card, ip and other information through ip add or ifconfig
ip add
ifconfig
The ifconfig command is used to display or set network devices.
ifconfig can set the status of network devices or display the current settings.
The results of the above two commands show two network ports. The names of the two network ports are eth0 and lo. In addition, it can be seen that only the eth0 network port is in the startup (UP) state
Recommended tutorial: "centos tutorial"
The above is the detailed content of How to check how many network cards the hardware has in centos. For more information, please follow other related articles on the PHP Chinese website!