Linux 101 : UDEV - lspci, lsusb, lshw, ethtool, ... -

Discovering network interfaces:

The udev program checks the hardware on a machine and let the operating system know about it.

After the boot, udev checks the devices attached to the system. It also names the network interfaces.

The udev program also makes the operating system aware of any changes or updates that happen while the system is running, like when we plug a usb device or network cable into the machine.

As we mentioned before udev provides names to the network interfaces based on their types, for example:
  • eno1 : Ethernet adapter 1 built on the motherboard.
  • enp0s3 : Ethernet adapter - PCI bus 0, Slot 3 ( usually on virtual boxes ).
On older systems, or if udev can't figure out a name for an interface, it might name it eth0, eth1, ...

Checking the network interfaces:

To check the PCI attached hardware including the network interfaces, we might use the below commands:

Or to check the USB device:

To find out more information about a network interface, like the driver, manufacturer, we could use the below utility:

We could use with an interface name, for example with interface names "eno1":

We could get the interfaces names using the below command:


Leave as a comment: