This list covers the most reliable ways to list network devices on Debian, from quick one-liners to detailed hardware queries. Whether you’re a sysadmin troubleshooting a NIC, a homelab user checking interfaces, or a developer writing scripts, these commands give you the exact device names, MAC addresses, drivers, and link states you need. Each entry includes real Debian specifics, so you can pick the right tool for the job without guessing.
1. ip link show
The ip command from the iproute2 package is the modern standard. Run ip link show to list all network interfaces with their names (like eth0, enp3s0, or wlan0), MAC addresses, and state (UP/DOWN). It’s installed by default on every Debian system, so it’s the first thing to try. For more detail, add -s to see RX/TX packet statistics per device.
2. ip addr show
This variant of ip adds IP addresses, both IPv4 and IPv6, to the interface list. It’s the fastest way to see which device holds which IP, including loopback (lo). Use ip -br addr for a compact, script-friendly output that shows each interface on one line—perfect for grep or awk in automation scripts.
3. ifconfig -a
The legacy ifconfig from the net-tools package still works on Debian, though it’s not installed by default on minimal systems. Run ifconfig -a to list all interfaces, including those that are down. It shows MAC addresses, IPs, and link stats. Install it with apt install net-tools if you’re on a server without it, but note that it’s deprecated in favor of ip.
4. lspci | grep -i net
To see the physical PCI/PCIe network hardware, use lspci from the pciutils package. Pipe it through grep -i net to filter for Ethernet, Network, or Wireless controllers. This shows the chipset model (e.g., Intel I219-V, Realtek RTL8111) which helps identify the correct driver or firmware. Run lspci -v for kernel driver in use and IRQ details.
5. lsusb
For USB network adapters—common on Raspberry Pi Debian setups or laptops with USB Wi-Fi dongles—lsusb from usbutils lists all USB devices. Look for entries like “Realtek 802.11ac” or “ASIX AX88179”. Combine with lsusb -t to see the device tree and confirm the device is actually enumerated. This is essential when a USB NIC isn’t showing up in ip link.
6. ethtool -i
Once you know an interface name from ip link, run ethtool -i eth0 to get the driver name, firmware version, and bus info. This is the go-to for diagnosing driver issues or checking if the kernel loaded the right module. For a full list of all interfaces’ drivers, loop through them: for i in $(ls /sys/class/net); do echo $i; ethtool -i $i | grep driver; done.
7. ls /sys/class/net
The kernel sysfs exposes every network device as a directory in /sys/class/net. Simply listing that directory gives you the canonical interface names. This is the most script-friendly method because it’s plain text and requires no extra tools. You can also check /sys/class/net//address for the MAC and /sys/class/net//device/driver for the driver symlink.
8. nmcli device status
If you use NetworkManager (default on Debian desktop), nmcli device status shows a table of all devices with their type (ethernet, wifi), state (connected, disconnected), and connection name. It’s more human-readable than raw ip output. For a detailed list including hardware addresses, run nmcli device show—this also shows which device is managed by NetworkManager.
9. dmesg | grep -i eth
When a device isn’t showing up at all, the kernel log is your friend. Run dmesg | grep -i eth (or grep -i network) to see driver loading messages, firmware errors, or device detection failures. On Debian with systemd, use journalctl -k | grep -i eth for the same. This reveals if the kernel sees the hardware but fails to bring it up due to missing firmware or a module conflict.
10. hwinfo –network
The hwinfo package provides a comprehensive hardware summary. Run hwinfo --network to get a detailed report of every network device, including PCI ID, driver, module, and hardware description. It’s not installed by default, so apt install hwinfo first. This is the most thorough option for a full inventory, especially when you have multiple NICs and need to map them to physical ports.
How to Choose
Start with ip link show for a quick list—it’s always there and gives you names and states. If you need IP addresses too, use ip addr. For hardware-level details like driver or chipset, combine lspci and ethtool. If you’re scripting, use /sys/class/net because it’s pure text and no parsing of command output needed. For desktop users, nmcli is the most readable. If a device is missing, check dmesg first to see if the kernel even detected it. For a one-shot full report, hwinfo is the most verbose but requires installation.
Frequently Asked Questions
Q: Why does my interface name look like enp3s0 instead of eth0?
A: Debian uses predictable network interface names based on hardware location. enp3s0 means Ethernet on PCI bus 3, slot 0. This is stable across reboots, unlike the old eth0 ordering.
Q: How do I list only physical devices, not virtual ones like docker0 or veth?
A: Use ls /sys/class/net and filter out entries that are symlinks to /sys/devices/virtual/net/. Or run ip link show and ignore interfaces with type veth or bridge.
Q: My USB WiFi adapter doesn’t appear in ip link. What do I do?
A: First check lsusb to see if the device is detected. Then check dmesg for driver errors. You may need to install firmware packages like firmware-iwlwifi or firmware-realtek from non-free repositories.
Q: Can I get the MAC address of all interfaces at once?
A: Yes, run ip link show and look at the link/ether line for each interface. Or use for i in $(ls /sys/class/net); do echo -n "$i: "; cat /sys/class/net/$i/address; done.
Q: What’s the difference between ip and ifconfig?
A: ip is the modern tool from iproute2, supports more features like policy routing and namespaces, and is actively maintained. ifconfig is legacy, less feature-rich, and not installed by default on Debian minimal.
Q: How do I see which driver is loaded for a specific NIC?
A: Use ethtool -i to see the driver name. Alternatively, check readlink /sys/class/net//device/driver.
Final Thoughts
Listing network devices on Debian is straightforward once you know the right commands. For daily use, ip link and ip addr cover 90% of needs. When hardware misbehaves, turn to lspci, lsusb, and dmesg to trace the problem to the driver or firmware. Keep ethtool in your toolkit for driver-level details, and remember that /sys/class/net is your scripting friend. With these ten commands, you’ll never be stuck wondering what network devices your Debian system has.