Marius Schuller
5 years
Andreas Herz
6 years
Claus-Theodor Riegg
7 years
Claus-Theodor Riegg
7 years
Claus-Theodor Riegg
8 years
Claus-Theodor Riegg
8 years

Identify network cards for linux network interfaces

Posted . Visible to the public.

If you want to find out what type of network card is used for a given network interface on a linux system, e.g. because the system has multiple network cards, try and match the driver to the interface name:

$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether ac:ab:13:37:ca:fe brd ff:ff:ff:ff:ff:ff
    altname enp96s0f0np0
#[…]
$ readlink /sys/class/net/eno1np0/device/driver
../../../../../../bus/pci/drivers/i40e

This give you the kernel module name used as the driver for the network card. In this case, it's the module for an Intel(R) Ethernet Controller 700 Series Show archive.org snapshot card.

Emma Heinle
Last edit
Emma Heinle
License
Source code in this card is licensed under the MIT License.