Linux Network Interfaces: Find the Right Device, State, and IP
When a Linux machine can’t reach the network, first find out what interfaces the kernel sees and whether they have addresses. A quick check can distinguish a missing device from one that’s simply down or not configured. For a fast scan, run: ip -br addr show You’ll get one line per interface, including its state and any assigned IP addresses. If you only need interface names and link state, use: ip -br link show To print just the names, without parsing command output: ls /sys/class/net That last command reads the kernel’s sysfs interface, so it’s handy in minimal environments and scripts. The
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in