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

WBOY
WBOYOriginal
2022-02-08 16:42:5313606browse

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".

How to check how many network cards the hardware has in centos

The operating environment of this article: centos 6.4 system, Dell G3 computer.

How to check how many network cards the hardware has in centos

Check the network card information

You can check the network card, ip and other information through ip add or ifconfig

ip add

How to check how many network cards the hardware has in centos

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.

How to check how many network cards the hardware has in centos

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!

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