How to view information about the network adapter in Linux

I will give examples of commands for viewing information about a network adapter in Linux.

View network interfaces and assigned IP addresses:

ifconfig
ifconfig ens2f0
ifconfig -a
ifconfig -a | grep ens2f0
ip link show

The driver version can be viewed as:

ethtool -i eth0

View package statistics:

ethtool -S eth0

Viewing packet statistics by queue (IRQ):

ethtool -S eth0 | grep tx_queue
ethtool -S eth0 | grep rx_packets

Example of viewing the name of the network adapter and parameters:

lspci | egrep -i --color 'network|ethernet'
lspci -v | grep Ethernet -A 15

Another example:

sudo apt install lshw
lshw -class network
lshw -class network| less

See also my articles:
Configuring the Network in Linux
Viewing Linux Computer Information
View information about RAM in Ubuntu

Leave a comment

Leave a Reply