Andreas Vöst
26 days
Claus-Theodor Riegg
4 years
Andreas Vöst
2 months
Andreas Vöst
2 months
Kim Klotz
3 months
Claus-Theodor Riegg
8 years
Andreas Vöst
5 months
Andreas Vöst
7 months
Claus-Theodor Riegg
8 years
Marc Dierig
9 months
Claus-Theodor Riegg
7 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.