To list network devices on Ubuntu, the standard commands are ip link (or its shorter form ip a) for interfaces, ip addr for interfaces plus their IP addresses, and lspci or lsusb for the physical hardware. These commands are preinstalled on modern Ubuntu releases and require no extra packages. The sections below cover each command, what its output means, and how to read it for common tasks like finding your Wi-Fi adapter or checking whether a cable is connected.

Run ip link in a terminal to see all network interfaces the kernel knows about. The output lists each interface by name, such as lo (loopback), enp3s0 (a wired Ethernet port), and wlp2s0 (a wireless adapter). Each line starts with a number, a colon, and the interface name, followed by flags like UP or DOWN and the MTU (maximum transmission unit, typically 1500 for Ethernet).

The UP flag means the interface is administratively enabled; it does not guarantee a cable is plugged in or a signal is present. To see IP addresses, use ip addr (or ip a). This adds inet lines for IPv4 addresses and inet6 for IPv6. A typical wired interface might show inet 192.168.1.42/24, meaning the address is 192.168.1.42 with a 24-bit subnet mask. The lo interface always shows 127.0.0.1/8.

If you need only the interface names, pipe the output: ip link show | grep '^[0-9]' prints lines starting with a number, which are the interface headers. For a cleaner list, ip -brief addr gives one line per interface with its state and addresses. These commands work the same on Ubuntu Desktop and Ubuntu Server; menu labels and command output can differ slightly by version, but the core syntax has been stable for years.

lspci and lsusb Find the Physical Hardware

The ip commands show logical interfaces, not the chips behind them. To see the actual network controller, run lspci | grep -i network for PCI devices or lspci | grep -i ethernet for wired controllers. The output gives a slot number and a description, such as Ethernet controller: Intel Corporation .... The exact model string depends on your hardware; you can look it up by the vendor and device ID shown in the line.

For USB Wi-Fi adapters, use lsusb. It lists all USB devices, and a wireless adapter usually appears with a description containing Wireless or 802.11. If you plug in a USB adapter and it does not appear in lsusb, the port or cable is the first thing to check. If it appears in lsusb but not in ip link, the driver may not be loaded; dmesg | tail right after plugging it in often shows a message about the device and any missing firmware.

These hardware commands are read-only and safe to run as a normal user. They do not change any settings.

Reading Interface Names and What They Mean

Ubuntu uses predictable network interface names. Names starting with en are Ethernet, wl are wireless, and lo is loopback. The suffix encodes the bus location: enp3s0 means PCI bus 3, slot 0; wlp2s0 means PCI bus 2, slot 0. This naming scheme replaced the older eth0 and wlan0 style, though you may still see those on some systems or in virtual machines.

A rule of thumb: if an interface name starts with wl, it is your Wi-Fi; if it starts with en, it is wired. The lo interface is internal and always present. Virtual interfaces such as docker0, virbr0, or veth pairs appear when you run containers or virtual machines; they are normal and not physical devices.

One common misconception is that ifconfig is the right tool. On current Ubuntu releases, ifconfig is part of the deprecated net-tools package and may not be installed by default. Use ip addr instead; it shows the same information and is maintained.

To confirm a wired connection is live, look for state UP in ip link and an inet line in ip addr. If the state is DOWN, the interface is disabled; enable it with sudo ip link set dev enp3s0 up (replace the name with yours). If the state is UP but there is no inet line, the interface has no IP address; check your DHCP server or run sudo dhclient enp3s0 to request one.

For Wi-Fi, ip link shows the interface but not which network it is associated with. Use iwconfig (if installed) or nmcli device status to see the connection state. nmcli device lists each device with its type, state, and connection name; this is the NetworkManager view and is the default on Ubuntu Desktop. On Ubuntu Server, nmcli may also be present if NetworkManager is installed; otherwise, check /etc/netplan/ configuration files.

To list only interfaces that are up, use ip link show up. To see statistics such as bytes transmitted and errors, use ip -s link. The error counters are useful for diagnosing bad cables or duplex mismatches: a rising errors count on a wired interface often means a physical problem.

When a Device Is Missing from the List

If ip link does not show a device you expect, start with lspci or lsusb to confirm the hardware is detected. If it appears there but not in ip link, the driver is likely missing or not loaded. Check dmesg | grep -i firmware for messages about missing firmware files; installing the correct firmware package for your adapter usually resolves it. The package name depends on the chipset; search by the vendor and device ID shown in lspci -nn.

If the device appears in ip link but is named eth0 or wlan0, the system is using the older naming scheme; the commands still work the same way. If you see an interface named rename2 or similar, it may be a temporary name during boot; a reboot usually settles it.

For USB Wi-Fi adapters that disappear after suspend, check dmesg after resuming; some drivers need a reload. You can reload a module with sudo modprobe -r module_name followed by sudo modprobe module_name, but only if you know the module name from lsmod or dmesg. This is a troubleshooting step, not a routine listing command.

Finally, remember that ip link and ip addr are the primary tools for listing network devices on Ubuntu. They are fast, require no extra packages, and give you the interface names you need for any further configuration.