Marc Dierig
11 months
Stefan Langenmaier
1 year
Andreas Vöst
1 month
Claus-Theodor Riegg
4 years
Andreas Vöst
3 months
Andreas Vöst
3 months
Kim Klotz
4 months
Claus-Theodor Riegg
8 years
Andreas Vöst
6 months
Andreas Vöst
8 months

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.