Lesson 1 of 9 · 22m
The Interface Mental Model: Links, Addresses, and Netlink
Learn how the kernel separates interfaces from addresses, why state is more than up or down, and how to inspect reality with ip instead of folklore.
A Linux host is not 'connected to the network' in the abstract. It owns a set of interfaces, each with link state, one or more addresses, neighbor entries, queues, counters, and a place in routing decisions. Most outages become much less mysterious when you stop asking 'is networking up?' and ask 'which stage of the packet path is wrong?'
Interfaces and addresses are different objects
An interface is a device: eth0, bond0, br0, veth12@if13. An address is attached to an interface but has its own lifetime and scope. This distinction matters because an interface can be administratively up and still have no usable address, or have a valid address while the physical link is dead.
ip -brief link
ip -brief address
ip link show dev eth0
ip address show dev eth0The -brief forms are what you want during an incident. Full output is for confirming details, not scanning twenty interfaces.
Read link state like an operator
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 52:54:00:19:8a:41 brd ff:ff:ff:ff:ff:ffUP means administratively enabled. LOWER_UP means the underlying carrier is present. state UP is the effective operational conclusion. A tunnel interface can be UP without LOWER_UP; a physical NIC with unplugged cable is often NO-CARRIER. Those details are not trivia — they split driver/cabling problems from configuration problems.
The kernel is the source of truth
ip talks to netlink, the kernel networking API. It is not parsing /etc/network/interfaces and it does not care what NetworkManager thinks should exist. That is why the first diagnostic move is always inspection of the live kernel state:
ip route get 203.0.113.25
ip neigh show dev eth0
ip -statistics link show dev eth0These three commands answer which route is selected, whether ARP/ND is resolving, and whether errors or drops are accumulating.
Names are labels, not meaning
eth0 is not inherently external. ens192 is not inherently physical. Predictable interface names encode bus topology, not trust level. The name tells you nothing about reachability. Learn to inventory reality before making changes:
ip -json link | jq -r '.[] | "\(.ifname) \(.operstate) \(.address)"'JSON output is stable enough for scripts, but treat it as an inspection convenience. Humans still troubleshoot faster with concise text plus a clear hypothesis.
Field notes
state UNKNOWNis normal for some virtual devices; do not treat the word as a universal alarm.- A missing
LOWER_UPpoints below IP: cable, switch port, hypervisor NIC, driver, or tunnel endpoint. NO-CARRIERwith a correct address usually means the address is configured but currently useless.- Never infer topology from interface names on inherited hosts. Inspect MACs, neighbors, routes, and hypervisor metadata.
ifconfigis obsolete in the details that matter; it hides secondary addresses and modern link state.
Was this lesson helpful?