↓ Skip to main content

Network Interfaces

·208 words·1 min·
Table of Contents
Different methods to list network interfaces in Linux.

Naming
#

Name PatternMeaning
loLoopback - virtual interface 127.0.0.1/8
eth0,eth1Classic wired Ethernet naming
wlan0,wlan1Classic WiFi naming
enp3s0,wlp2s0“Preditable Network Interface Names” - stable names that don’t change when hardware is added/removed

Cmdline
#

Below we’ve listed 10 methods to list network interfaces on Linux OS. This is helpful for troubleshooting, configuration, and hardware checking.

#MethodCommandBest For
1ip commandip addrModern all-purpose chaeck of IP state and names.
2nmclinmcli device statusClean and easy-to-read summary. Requires NetworkManager running.
3netstatnetstat -iViewing transmission/reception stats (packets, bytes); older net-tools package
4ifconfigifconfig -aLegacy method for IPs and state; deprecated, often not installed by default
5/proc/net/dev (file)cat /proc/net/devLow-level kernel stats (packets, errors); good for scripting/monitoring
6/sys/class/net (directory)cat /proc/net/devQuick, simple list of interface names only
7hwinfosudo hwinfo --short --networkHardware summary β€” driver details and configuration
8lshwsudo lshw -class network -shortChecking physical hardware (e.g., confirming a new network card is recognized)
9iwconfigiwconfigWireless-specific info (signal strength, ESSID, access point MAC) β€” Wi-Fi only
10lspcilspci | egrep -i 'network|ethernet|wireless|wi-fi'Filtering PCI devices to find network-related hardware
zd
Author
zd
cli-geek, strategist, architect

Related