1. First are the two simplest and clearest commands, ifconfig
and lspci
.
1. ifconfig: The most commonly used command to configure and view network interface information. Executing this command on the server will get the content below. You can see multiple devices and device status and information in the following content.
Related free learning video tutorial recommendations: linux video tutorial
2, lspci |grep -i 'eth'
or lspci | grep -i net
command: can list the devices on each pci bus. After filtering through grep, you can get the network card device list. Below you can see the network devices on my pci bus. There are two, two Intel network cards:
3, iwconfig
: used to check the wireless network, if there is a wireless network card on your device at this time You can use this command to check that there is no wireless network card device on my device, so you will get the following information.
Recommended related articles and tutorials: linux tutorial
The above is the detailed content of How to check network card information in Linux. For more information, please follow other related articles on the PHP Chinese website!