Tech
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.
Start with a compact overview
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
...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to