Use it as the entry point when a Linux host has no or partial connectivity, or network settings do not survive a reboot.
Linux Networking
Linux networking is configured in the kernel (interfaces, addresses, routes, neighbour cache, netfilter) and made persistent by one management tool: NetworkManager, systemd-networkd (often via Netplan on Ubuntu) or ifupdown.
1. ip -br link / ip -br addr — link and address?
2. ip route get <dest> — route and source address used?
3. ping <gateway> then the destination; ip neigh — gateway resolved?
4. DNS separately: getent hosts <name>.
5. Persistent config in the owning tool (nmcli, netplan, networkd).
management tool applies config → interface up with carrier → address → route/gateway → neighbour resolved → remote reachable
For Linux Networking, continue with the first unproven Topic check: Pin host, namespace, interface identity, source/destination and protocol/port for the failing flow. If that boundary is healthy, advance to the adjacent check: Capture configuration owner plus kernel-effective link, address, neighbor and route/rule state before changes. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
A VLAN appearing in show vlan brief shows only local VLAN database state. It does not show the VLAN is allowed across every trunk, that STP forwards the path, or that the gateway/routing path works.
Operational reference
Fast context before you go deeper.
ip -s link show [DEV]Primary Commands
Configuration and operational commands for this Topic.
ip -s link show [DEV]ReferenceInterface state and counters.
Use when: Use after confirming the Linux Networking target and before changing state.
Quick note: Linux · distribution/version specific. A successful command or active unit proves only local state; it does not prove dependency health, data integrity or client-visible service.
Linux · mixedip addr show [DEV]VerifyDisplay interface addresses and state.
Use when: Use after confirming the Linux Networking target and before changing state.
Quick note: Linux · distribution/version specific. A successful command or active unit proves only local state; it does not prove dependency health, data integrity or client-visible service.
Linux · mixedip neigh show [to ADDRESS]ReferenceDisplay ARP/ND neighbor cache.
Use when: Use after confirming the Linux Networking target and before changing state.
Quick note: Linux · distribution/version specific. A successful command or active unit proves only local state; it does not prove dependency health, data integrity or client-visible service.
Linux · mixedipReferenceInspect or change Linux networking objects through the iproute2 interface.
Use when: Primary lookup intent: configure. Use ip when the lookup goal is to inspect or change Linux networking objects through the iproute2 interface. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for ip: Read back effective objects and rerun the original L3/L4/application path test. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: disruptive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. ip is documented as an operational lookup primitive under Linux Networking. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
ip addrReferenceInspect or change IPv4 and IPv6 addresses assigned to network interfaces.
Use when: Primary lookup intent: configure. Use ip addr when the lookup goal is to inspect or change IPv4 and IPv6 addresses assigned to network interfaces. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for ip addr: Verify address/source selection and rerun the original network/application flow. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: changes_state. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. ip addr is documented as an operational lookup primitive under Linux Networking. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
ip linkReferenceInspect or change interface link state, MTU, MAC address and link-layer properties.
Use when: Primary lookup intent: configure. Use ip link when the lookup goal is to inspect or change interface link state, MTU, MAC address and link-layer properties. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for ip link: Verify carrier/admin/link attributes and retest the original adjacent and end-to-end path. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: disruptive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. ip link is documented as an operational lookup primitive under Linux Networking. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
ip routeReferenceInspect or change kernel routing-table entries and route-selection attributes.
Use when: Primary lookup intent: configure. Use ip route when the lookup goal is to inspect or change kernel routing-table entries and route-selection attributes. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for ip route: Verify route lookup/source selection and rerun the original end-to-end flow. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: changes_state. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. ip route is documented as an operational lookup primitive under Linux Networking. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
ip neighReferenceInspect or change ARP and IPv6 neighbor-cache entries and reachability state.
Use when: Primary lookup intent: configure. Use ip neigh when the lookup goal is to inspect or change ARP and IPv6 neighbor-cache entries and reachability state. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for ip neigh: Read back neighbor state and rerun the target L3/L4/application test. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: changes_state. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. ip neigh is documented as an operational lookup primitive under Linux Networking. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
nmcliReferenceInspect or change NetworkManager devices, connections, addressing and activation state.
Use when: Primary lookup intent: configure. Use nmcli when the lookup goal is to inspect or change NetworkManager devices, connections, addressing and activation state. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for nmcli: Read back active profile/effective IP/DNS/routes and rerun the original end-to-end network test. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: disruptive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. nmcli is documented as an operational lookup primitive under Linux Networking. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification evidence Verify boundary
Prefer observable state over assumptions. Capture service state, configuration, logs, connectivity and dependency health before declaring success.
Step 2 Operational evidence path Verify boundary
configuration source/manager → namespace + interface identity → link/carrier → address/prefix → neighbor resolution → route/rule lookup → L2/MTU packet path → socket/service → original workload
Healthy evidence: the intended manager/configuration resolves to the expected kernel state, the exact route/neighbor path is explainable in the correct namespace, packets traverse both directions and the original service succeeds.
Step 3 Operational verification Verify boundary
Interfaces, routes, bridges, bonds, VLANs and namespaces.
Fast verification
- Establish link, address, route and neighbor state with
ip -br link,ip -br addr,ip routeandip neigh.
- Use ip route get <destination> for the exact lookup and ss -lntup for socket state.
- Only then move to DNS, firewall or packet capture.
Step 4 Commands Verify boundary
ip -br addr
ip route
ip neigh
ss -tulpn
resolvectl status
Step 5 Verification and output interpretation Verify boundary
For DNS, separate direct IP connectivity from name-resolution path and compare the application’s resolver with manual tools. A capture should be tied to interface, direction, namespace, timestamp and filter. Verify both request and response and account for offload where packet presentation differs.
Existing fast checks for this Topic. - Pin host, namespace, interface identity, source/destination and protocol/port for the failing flow.
- Capture configuration owner plus kernel-effective link, address, neighbor and route/rule state before changes.
- Trace the first failing step with counters, route lookup and packet capture where appropriate.
- Repeat the original workload and verify forward path, return path and service socket after remediation.
Verification chain. configuration source/manager → namespace + interface identity → link/carrier → address/prefix → neighbor resolution → route/rule lookup → L2/MTU packet path → socket/service → original workload
Step 6 Troubleshooting workflow Narrow the fault
Start from the symptom and narrow the fault domain. Compare known-good state, check dependencies, collect evidence, test one hypothesis at a time and record the root cause.
Step 7 Common mistakes Narrow the fault
- Using deprecated
ifconfig/netstatand missing secondary addresses. - Editing config files that the active network manager overwrites.
Step 8 Failure modes and next checks Narrow the fault
Suspicious evidence: operators stop at interface UP, an assigned address or a default route and miss namespace mismatch, stale neighbor state, policy routing, MTU, L2 membership, firewall or remote return-path failures.
It does not show behavior outside the captured namespace, interface, local kernel, L2/path or workload scope. Linux networking evidence must be scoped to an exact namespace, interface and flow; local kernel state does not show upstream switching/routing, remote host policy, return path or application health.
Next check: Continue from the first step that has not been verified: confirm namespace and configuration owner, inspect ifindex/link/address/neighbor/route state for the exact flow, verify L2/MTU construction and packet movement, then test the listening service and return path before making additional changes.
Evidence · 2 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Healthy evidence: the intended manager/configuration resolves to the expected kernel state, the exact route/neighbor path is explainable in the correct namespace, packets traverse both directions and the original service succeeds. Suspicious evidence: operators stop at interface UP, an assigned address or a default route and miss namespace mismatch, stale neighbor state, policy routing, MTU, L2 membership, firewall or remote return-path failures.
command output · Documented exampleLinux Networking local healthy-state checkpointThe expected object, scope, state and counters match a controlled test.
Subtopics
Go one level deeper into this subject.
A Linux network interface is a kernel netdevice identified by ifindex and a name inside a network namespace; administrative UP, carrier, operstate, master membership, addresses and device-specific properties are distinct state dimensions.
Subtopic Routing TableLinux route selection uses the routing policy database plus one or more FIB tables; prefixes, metrics, route types, source hints, nexthops, interfaces and policy rules determine the route selected for an exact packet context.
Subtopic Default GatewayA Linux default gateway is represented by one or more default routes used only when no more-specific route wins in the selected routing table; gateway validity depends on route policy, interface state, on-link reachability and neighbor resolution.
Subtopic ARP / Neighbor TableLinux uses the neighbor subsystem for IPv4 ARP and IPv6 Neighbor Discovery; entries transition through NUD states and map next-hop IP addresses to link-layer reachability on a specific interface.
Subtopic NetworkManagerNetworkManager is a Linux network configuration daemon that manages devices through persistent connection profiles and runtime activation state; profile intent, active connection, device state and kernel-effective configuration must be distinguished.
Subtopic NetplanNetplan is a declarative YAML configuration layer used primarily on Ubuntu that renders network intent to a backend such as systemd-networkd or NetworkManager; YAML validity, generated backend configuration, applied runtime state and workload result are separate boundaries.
Subtopic systemd-networkdsystemd-networkd configures links and networks from ordered `.link`, `.netdev` and `.network` units; file matching/precedence, generated virtual devices, address/route acquisition and network-online semantics must be validated separately.
Subtopic VLANLinux VLAN interfaces implement IEEE 802.1Q tagging as virtual netdevices bound to a parent link and VLAN ID; parent state, VLAN identity, bridge/bond placement, tagging behavior and upstream switch configuration all affect connectivity.
Subtopic BondingLinux bonding combines multiple slave interfaces into one logical interface with a selected mode and monitoring method; active member selection, LACP/static expectations, MAC behavior and failure detection determine effective redundancy and throughput.
Subtopic BridgesA Linux bridge is an in-kernel Layer 2 forwarding domain connecting ports and optionally the host itself; port membership, bridge VLAN filtering, FDB learning, STP state and IP placement determine behavior.
Subtopic MTUMTU defines the maximum Layer 3 packet size accepted/transmitted on an interface path; effective path MTU can be lower because of tunnels, VLAN/encapsulation overhead or intermediate links, and IPv4 fragmentation/IPv6 PMTUD behavior differs.
Subtopic Network NamespacesLinux network namespaces isolate network devices, addresses, routes, neighbor tables, firewall state and sockets; the same interface name or IP can exist independently in different namespaces, making namespace context a first-class diagnostic boundary.
The ip command shows and changes the live kernel state, but changes are lost at reboot — make them in the managing tool. Find out first which tool owns the interface; two tools fighting over one interface cause settings that revert.
ip -br addr— interfaces and addressesip route— routing table and default routeip neigh— ARP/neighbour cacheip route get <dest>— route, interface and source chosen for a destinationnmcli device status / networkctl— which tool manages each interface
ReferenceWhat it is3 sections · depth on demand
Concept overview
Interfaces, routes, bridges, bonds, VLANs and namespaces.
Focus on the components, dependencies and terminology needed to reason about this technology.
Operational scope
Interfaces, addresses, routes, neighbors, sockets, DNS resolution and packet-path troubleshooting on Linux.
Core model
Start with the exact namespace, interface and failing flow. Identify which component owns configuration, then separate intended configuration from rendered files or manager profiles and from kernel-effective state. Verify link/carrier, addresses, neighbor state, route/rule selection and packet movement before testing the destination socket and original workload.
ReferenceWhy it matters3 sections · depth on demand
Why it matters
Why this matters
Interfaces, routes, bridges, bonds, VLANs and namespaces.
A useful mental model is to identify the desired state, the control or management mechanism that creates it, the observable state that shows it, and the failure modes that can make those states disagree. Avoid memorizing commands without linking them to the question each command answers.
When to use it
Use Linux Networking when the problem concerns Linux runtime, services, networking, identity, packages, storage or shell automation.
Quality lift: concrete internals
Linux Networking quality lift — inspect the concrete Linux network namespace/data path mechanics rather than treating existing coverage as completion.
ReferenceHow it works1 section · depth on demand
How it works
An access frame enters a VLAN, the switch learns source MAC state, and inter-switch links must carry that VLAN with correct 802.1Q/native behavior. Spanning tree then decides which Layer-2 links can forward. A gateway or routed SVI is a separate Layer-3 boundary.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Linux networking evidence must be scoped to an exact namespace, interface and flow; local kernel state does not show upstream switching/routing, remote host policy, return path or application health.
Key operational limits
- Map process → socket/file/device → kernel/resource → external dependency
In depth
The kernel settings behind Linux networking
Most Linux networking behaviour is controlled by kernel parameters under net.ipv4 and net.ipv6, which you read and change with sysctl. The kernel's IP sysctl documentation describes the settings that matter most in day-to-day operation:
ip_forwarddecides whether the host routes between interfaces. The default is 0 (disabled), and changing it resets other interface parameters to their defaults.rp_filterselects source validation: 0 means none, 1 is strict reverse-path filtering and 2 is loose mode, both as defined in RFC 3704.ip_local_port_rangedefines the ephemeral ports TCP and UDP use for outgoing connections. The default is 32768–60999.- IPv6
forwardingswitches an interface between host and router behaviour.accept_radecides whether Router Advertisements are used: 0 rejects them, 1 accepts them only while forwarding is off, and 2 accepts them even when forwarding is on.
Settings and when they matter
| Setting | Typical change | Why |
|---|---|---|
net.ipv4.ip_forward=1 | Routers, VPN gateways, container hosts | Without it, packets between interfaces are dropped |
net.ipv4.conf.all.rp_filter=2 | Asymmetric routing, multiple uplinks | Strict mode drops replies arriving on the "wrong" interface |
net.ipv6.conf.<if>.accept_ra=2 | A router that also learns its default route from RAs | Value 1 ignores RAs once forwarding is enabled |
net.ipv4.ip_local_port_range | Proxies with many outgoing connections | Ephemeral port exhaustion |
net.ipv4.neigh.default.gc_thresh3 | Hosts on very large subnets | Neighbour table limit (default 1024) |
Making changes persistent
host$ sysctl net.ipv4.ip_forward net.ipv4.conf.all.rp_filter
net.ipv4.ip_forward = 0
net.ipv4.conf.all.rp_filter = 1
host$ sudo sysctl -w net.ipv4.ip_forward=1
host$ printf 'net.ipv4.ip_forward = 1\nnet.ipv4.conf.all.rp_filter = 2\n' | sudo tee /etc/sysctl.d/90-router.conf
host$ sudo sysctl --system | grep -A2 90-router
host$ cat /proc/sys/net/ipv4/ip_forward
1
A common surprise
Distributions and tools set these values too. Container runtimes and firewall managers often enable forwarding, and some distributions ship a strict rp_filter. When behaviour doesn't match your configuration, run sysctl -a | grep <name>. It shows the live value, and the file list from sysctl --system shows which file set it last.
Documented example, not captured output.
How it works at runtime
Linux Networking is part of Linux Networking. Linux networking is a layered kernel dataplane plus configuration-management model: effective connectivity depends on the active network namespace, interface identity and operational state, addresses, neighbor resolution, routing/rules, L2 constructs, MTU, firewall/policy interactions and the listening application path.
Runtime state ownership and mechanics. Linux networking spans netdevice/link state, addresses, neighbor cache, routing policy/tables, namespaces/VRFs, bridges/bonds/VLANs, socket state and user-space managers such as NetworkManager, netplan or systemd-networkd. The kernel forwarding path and the manager’s persistent intent are distinct. DNS adds NSS/resolver selection, per-link/global server policy, caches and upstream recursion/authority. Packet capture observes traffic at a chosen hook/interface and must be interpreted in that context.
Topic-specific state model. Linux networking is a layered kernel dataplane plus configuration-management model: effective connectivity depends on the active network namespace, interface identity and operational state, addresses, neighbor resolution, routing/rules, L2 constructs, MTU, firewall/policy interactions and the listening application path.
Technical metadata. Host, distribution/release, kernel, incident/change time, network namespace inode/name, process namespace, ifindex/interface name/type/MAC, parent/master/peer, admin/carrier/operstate, addresses/prefixes, neighbor IP/MAC/NUD state, policy rules, route table/prefix/type/metric/nexthop/source, configuration owner/profile/renderer, VLAN ID, bond mode/member/LACP state, bridge port/FDB/VLAN state, interface/path MTU, counters/drops/errors, packet capture point, socket/listener, forward/return path and original workload result.
Interpretation rule. - Configured interface ≠ interface present and operational in the relevant namespace.
- Address present ≠ neighbor resolution, route selection or return path is valid.
- Route exists ≠ that route is selected for the exact source/destination/mark context.
- Ping or manager success ≠ the application socket, policy and original workload are healthy. Treat a name, file, unit, process, interface, mount, namespace or security object as an identity that must be matched to the exact runtime instance. Presence alone is weaker evidence than active state, and active local state is weaker than a successful consumer-visible operation.
Limits and how it fails
Primary failure point. Linux networking evidence must be scoped to an exact namespace, interface and flow; local kernel state does not show upstream switching/routing, remote host policy, return path or application health.
Boundary chain: process/socket namespace → source/rule/FIB → neighbor → netfilter/eBPF/qdisc → virtual/physical device → peer → return → application.
Model. Interface UP does not show carrier, addressing, routing, neighbor resolution, firewall passage, DNS or application service. A default route can exist in the wrong namespace/table or with unusable next-hop reachability. A successful dig/resolvectl query can bypass the resolver path used by an application. Packet absence at one capture point does not show it was never generated. Keep configuration-manager state, kernel network state and remote service outcome separate.
ReferenceConfiguration & state2 sections · depth on demand
Operational workflow
Build a repeatable workflow: establish desired state, inspect current state, make the smallest safe change, then verify with concrete evidence.
Configuration, persistence and lifecycle
Configuration intent and lifecycle. Identify the authoritative network manager before editing files or issuing persistent commands. Generated configurations such as netplan output should be changed at their source. Keep interface identity, VLAN/bond/bridge membership, MTU, addresses, routes/rules and DNS policy explicit. Changes inside one network namespace do not automatically affect another. Treat transient ip commands as runtime state unless persistence is intentionally provided by the responsible manager.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Linux Networking. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/networking/index.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Linux Networking operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Linux Networking.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Linux networking is a layered kernel dataplane plus configuration-management model: effective connectivity depends on the active network namespace, interface identity and operational state, addresses, neighbor resolution, routing/rules, L2 constructs, MTU, firewall/policy interactions and the listening application path. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin host + namespace + exact flow → identify configuration owner/renderer → identify ifindex/interface + topology → inspect link/carrier → inspect addresses → inspect neighbor resolution → reproduce route/rule lookup → verify VLAN/bond/bridge/MTU as relevant → inspect packets/socket → verify return path → repeat original workload. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | configuration source/manager → namespace + interface identity → link/carrier → address/prefix → neighbor resolution → route/rule lookup → L2/MTU packet path → socket/service → original workload | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Linux networking evidence must be scoped to an exact namespace, interface and flow; local kernel state does not independently prove upstream switching/routing, remote host policy, return path or application health. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux networking evidence can establish this proof path: configuration source/manager → namespace + interface identity → link/carrier → address/prefix → neighbor resolution → route/rule lookup → L2/MTU packet path → socket/service → original workload | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured namespace, interface, local kernel, L2/path or workload scope. Linux networking evidence must be scoped to an exact namespace, interface and flow; local kernel state does not independently prove upstream switching/routing, remote host policy, return path or application health. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: confirm namespace and configuration owner, inspect ifindex/link/address/neighbor/route state for the exact flow, verify L2/MTU construction and packet movement, then test the listening service and return path before making additional changes. | Continue to the next unresolved boundary while preserving the original test condition. |
Linux Networking · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Linux Networking |
|---|---|
| Topic path | Linux Networking |
| Runtime state | Linux networking is a layered kernel dataplane plus configuration-management model: effective connectivity depends on the active network namespace, interface identity and operational state, addresses, neighbor resolution, routing/rules, L2 constructs, MTU, firewall/policy interactions and the listening application path. |
| Fast checks | - Pin host, namespace, interface identity, source/destination and protocol/port for the failing flow. - Capture configuration owner plus kernel-effective link, address, neighbor and route/rule state before changes. - Trace the first failed boundary with counters, route lookup and packet capture where appropriate. - Repeat the original workload and verify forward path, return path and service socket after remediation. |
| Verification chain | configuration source/manager → namespace + interface identity → link/carrier → address/prefix → neighbor resolution → route/rule lookup → L2/MTU packet path → socket/service → original workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. |
| Failure boundary | Linux networking evidence must be scoped to an exact namespace, interface and flow; local kernel state does not independently prove upstream switching/routing, remote host policy, return path or application health. Boundary chain: process/socket namespace → source/rule/FIB → neighbor → netfilter/eBPF/qdisc → virtual/physical device → peer → return → application. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.
Linux Network Fast Check
Interface → route → neighbor → socket → firewall → capture.
30-second flow
1. ip -br link / ip -br addr
2. ip route get <dst>
3. ip neigh
4. ss -lntup
5. nft list ruleset
6. tcpdump -ni <if> host <ip>
Remember
ping alone does not prove the service, the TCP port or the policy.
Deep reference
Healthy vs suspicious evidence
How to read the evidence
Verification: Run ip/ss/nft/tc or packet observation in the correct namespace, correlate the exact tuple with route/neighbor/filter counters, then repeat the original socket/application test.
Exam focus
Reasoning focus
Operations focus
Do not change production state before collecting enough evidence to define the failure domain. Prefer reversible, minimal changes and capture post-change evidence. Separate service restoration from root-cause analysis when necessary.
Design & tradeoffs
Design and operations depth
Document tradeoffs, failure domains, recovery behavior, security boundaries, monitoring points and rollback strategy. Treat automation as a controlled state transition rather than a one-off command sequence.