brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: ethtool -i shows the driver and firmware version behind a Linux network port

Linux
~/tips/tip-linux-ethtool-i-driver

ethtool -i eth0

Find out which driver and firmware a network card uses before you search for a bug.

When a network card drops its link now and then, the first question on any forum is which driver and firmware you run. ethtool -i answers that in one go.

ethtool -i eth0

The man page describes it as a query for the driver information of the device. The output lists the driver name, for example igc or r8169, the driver version, the firmware version and the bus address of the card. That bus address is the same one lspci shows, so you can match the port to the physical card.

The firmware line is the one I care about most. Many link problems on Intel and Realtek cards turn out to be fixed in a newer firmware, and release notes always mention the version they fix. With this line in hand you can tell right away whether that fix applies to you.

For the hardware address the card shipped with, there is a second option:

ethtool -P eth0

That prints the permanent MAC address, which can differ from the one in use when a bond, a bridge or a random MAC setting changed it.

The driver version line is less useful than it looks. For drivers that ship inside the kernel it often just repeats the kernel version, so search with the driver name, the firmware version and your kernel version together. Virtual interfaces like bridges and veth pairs show a driver too, but no firmware.

Further reading: ethtool(8) manual page

More Linux tips a2query -m rewrite renice -n 10 -p 4242 cat config.yml | xsel -ib xvfb-run -a your-program --some-flag dpkg --get-selections > packages.txt All Linux tips (261) All topics

Link