Lshw -c network -businfo
The command line tool Collecting hardware information with lshw and inxi under Linux (list hardware) shows hardware information on a PC or server. In this article, we explain how to get an overview of installed network cards, its PCI-addresses as well as device names with lshw -c network -businfo
lshw -c network -businfo
The following output shows network devices of a Lenovo Thinkpad X230. In this device, an Intel 82579LM Gigabit-Ethernet controller as well as a WLAN module is built in:
werner@x230:~$ sudo lshw -c network -businfo Bus info Device Class Description ======================================================= pci@0000:00:19.0 enp0s25 network 82579LM Gigabit Network Connection (Lewisville) pci@0000:03:00.0 wlp3s0 network Centrino Advanced-N 6205 [Taylor Peak]
The next output shows a server with an onboard Intel I350-T2 Dual-Port Ethernet chip as well as multiple Broadcom network cards:
tk@pve-host:~$ sudo lshw -c network -businfo Bus info Device Class Description =========================================================== pci@0000:01:00.0 enp1s0f0np0 network BCM57508 NetXtreme-E 10Gb/25Gb/4 pci@0000:01:00.1 enp1s0f1np1 network BCM57508 NetXtreme-E 10Gb/25Gb/4 pci@0000:81:00.0 enp129s0f0np0 network BCM57416 NetXtreme-E Dual-Media pci@0000:81:00.1 enp129s0f1np1 network BCM57416 NetXtreme-E Dual-Media pci@0000:82:00.0 enp130s0f0 network I350 Gigabit Network Connection pci@0000:82:00.1 enp130s0f1 network I350 Gigabit Network Connection pci@0000:c5:00.0 ens1f0np0 network BCM57504 NetXtreme-E 10Gb/25Gb/4 pci@0000:c5:00.1 ens1f1np1 network BCM57504 NetXtreme-E 10Gb/25Gb/4 pci@0000:c5:00.2 ens1f2np2 network BCM57504 NetXtreme-E 10Gb/25Gb/4 pci@0000:c5:00.3 ens1f3np3 network BCM57504 NetXtreme-E 10Gb/25Gb/4
lshw -c network
If the -businfo parameter is omitted, lshw displays detailed information about the individual devices:
werner@x230:~$ sudo lshw -c network
*-network
description: Ethernet interface
product: 82579LM Gigabit Network Connection (Lewisville)
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: enp0s25
version: 04
serial: f0:de:f1:f3:17:88
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=6.1.0-10-amd64 duplex=full firmware=0.13-3 ip=172.16.0.100 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:26 memory:f1500000-f151ffff memory:f152b000-f152bfff ioport:4080(size=32)
*-network
description: Wireless interface
product: Centrino Advanced-N 6205 [Taylor Peak]
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlp3s0
version: 34
serial: 9a:b1:93:8c:39:32
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=6.1.0-10-amd64 firmware=18.168.6.1 6000g2a-6.ucode latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:30 memory:f0c00000-f0c01fff
|
Author: Werner Fischer Werner Fischer, working in the Knowledge Transfer team at Thomas-Krenn, completed his studies of Computer and Media Security at FH Hagenberg in Austria. He is a regular speaker at many conferences like LinuxTag, OSMC, OSDC, LinuxCon, and author for various IT magazines. In his spare time he enjoys playing the piano and training for a good result at the annual Linz marathon relay.
|
|
Translator: Alina Ranzinger Alina has been working at Thomas-Krenn.AG since 2024. After her training as multilingual business assistant, she got her job as assistant of the Product Management and is responsible for the translation of texts and for the organisation of the department.
|


