Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

systemd-networkd

Direct answer

systemd-networkd configures interfaces from .network, .netdev and .link files in /etc/systemd/network/. It is the server backend for Netplan and works on its own on minimal systems.

When to use this

Use it on servers and containers that use networkd, or when an interface stays unconfigured.

First 30 seconds

1. networkctl list — state configured / degraded / configuring?

2. networkctl status <if> — which .network file matched?

3. No match → check [Match] Name=/MACAddress=.

4. networkctl reload && networkctl reconfigure <if>.

5. Logs: journalctl -u systemd-networkd -e.

Operational verification

.link names the device → .netdev creates virtual devices → .network matched → addresses/routes applied → state configured

Evidence · next step

For Linux Networking → systemd-networkd, continue with the first unproven Topic check: List matching .link/.netdev/.network files in effective precedence for the interface. If that boundary is healthy, advance to the adjacent check: Inspect networkd setup/operational state and journal messages for address, DHCP and route events. 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
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Scope / prerequisiteUse it on servers and containers that use networkd, or when an interface stays unconfigured.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

systemd network unit files → match/precedence → netdev/link creation → networkd configuration/DHCP/RA → kernel address/route state → online semantics → packet path → workload

Healthy evidence: the intended unit files match the intended link, networkd reaches expected state without repeated acquisition errors, kernel state matches intent and the application flow succeeds.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - List matching .link/.netdev/.network files in effective precedence for the interface.

  • Inspect networkd setup/operational state and journal messages for address, DHCP and route events.
  • Compare configured intent with kernel link/address/route and resolver state.
  • Verify the specific service dependency and original workload rather than relying on network-online alone.

Verification chain. systemd network unit files → match/precedence → netdev/link creation → networkd configuration/DHCP/RA → kernel address/route state → online semantics → packet path → workload

Step 3 Commands Verify boundary
networkctl status
ls /etc/systemd/network/
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: an earlier file matches unexpectedly, DHCP/RA never completes, a netdev is absent, network-online semantics are misunderstood or kernel state diverges from the unit configuration.

It does not show behavior outside the captured namespace, interface, local kernel, L2/path or workload scope. systemd-networkd configured/online state shows only its own readiness model, not end-to-end application connectivity or remote dependency health.

Step 5 Common mistakes Narrow the fault
  • Two network managers configuring the same interface.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points

A .network file applies to interfaces matched in [Match]. Virtual devices (VLAN, bond, bridge) are created by .netdev files. networkctl reload re-reads files. Pair with systemd-resolved for DNS.

Key checks
  • ip -br addr — interfaces and addresses
  • ip route — routing table and default route
  • ip neigh — ARP/neighbour cache
  • ip route get <dest> — route, interface and source chosen for a destination
  • nmcli device status / networkctl — which tool manages each interface
ReferenceWhat it is1 section · depth on demand

Core model

Identify the exact files matching a link and remember that the first matching .network file wins. Check networkd operational/setup states and logs, then compare kernel addresses/routes and any DHCP/RA behavior. network-online.target is not equivalent to arbitrary application reachability.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

systemd-networkd configured/online state shows only its own readiness model, not end-to-end application connectivity or remote dependency health.

In depth

systemd-networkd configuration files

systemd-networkd configures interfaces from .network files, with virtual devices defined in .netdev files and physical device properties in .link files. The systemd.network(5) manual page explains how the files are found and matched:

  • Directories: /usr/lib/systemd/network, /usr/local/lib/systemd/network, /run/systemd/network and /etc/systemd/network. Files in /etc have the highest priority.
  • Ordering: files are processed in alphanumeric order regardless of directory. The first file whose [Match] section matches an interface applies, and later matches are ignored.
  • Masking: an empty file, or a symlink to /dev/null, masks a file of the same name.
  • Drop-ins: foo.network.d/*.conf drop-ins are merged into the main file.
  • Naming: the manual suggests prefixes below 70, such as 10-eth0.network, to avoid conflicts with shipped or generated files.

Main sections and keys

SectionKeysPurpose
[Match]Name=, MACAddress=, Type=, Driver=Which interfaces the file applies to
[Network]DHCP=, Address=, Gateway=, DNS=, Domains=Addressing and resolver information (DNS goes to systemd-resolved)
[Network]VLAN=, Bond=, Bridge=Stacked devices and membership
[Network]IPv6AcceptRA=, LinkLocalAddressing=IPv6 behaviour
[Route]Destination=, Gateway=, Metric=, Table=Extra routes
[Link]MTUBytes=, RequiredForOnline=MTU; whether wait-online waits for this link

An empty [Match] section matches every interface. networkd warns about it, so use Name=* if that's what you intend.

A static interface with an extra route

host$ cat /etc/systemd/network/10-eth0.network
[Match]
Name=eth0

[Network]
Address=10.110.0.64/24
Gateway=10.110.0.1
DNS=10.20.0.53
Domains=example.net

[Route]
Destination=10.40.0.0/16
Gateway=10.110.0.254
Metric=50
host$ sudo networkctl reload
host$ networkctl list
IDX LINK TYPE     OPERATIONAL SETUP
  2 eth0 ether    routable    configured
host$ networkctl status eth0
host$ journalctl -u systemd-networkd -b | tail

Reading networkctl

SETUP configured means a .network file matched and was applied. unmanaged means no file matched, or the interface is managed by another tool. That's the first thing to check when a setting seems to be ignored.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works at runtime

systemd-networkd is part of Linux Networking → systemd-networkd. systemd-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.

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.

Topic-specific state model. systemd-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.

Interpretation rule. - Configuration file exists ≠ it matches the intended link.

  • Matching .network ≠ address/DHCP/route acquisition completed.
  • networkd configured state ≠ remote service or DNS works.
  • network-online.target reached ≠ every interface/path required by an application is usable.

Quick reference

systemd-networkd uses .network, .netdev and .link files in /etc/systemd/network/.

# /etc/systemd/network/10-eno1.network
[Match]
Name=eno1
[Network]
Address=10.0.10.21/24
Gateway=10.0.10.1
DNS=10.0.0.53
Domains=corp.example.com

systemctl enable --now systemd-networkd
networkctl list; networkctl status eno1
networkctl reload

Pair with systemd-resolved for DNS. systemd-networkd-wait-online blocks boot until links are configured — limit it to required interfaces (--interface=eno1) to avoid two-minute boot delays.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Limits and how it fails

Primary failure point. systemd-networkd configured/online state shows only its own readiness model, not end-to-end application connectivity or remote dependency health.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. systemd-networkd owns its unit matching and activation semantics. systemd & Services owns generic unit lifecycle; Netplan may render configuration consumed here.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Linux Networking → systemd-networkd. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/networking/index.html · confidence 94%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
systemd-networkd linuxnetworkd configuration.network filesnetworkctl
Embedded reference data

Quick lookup tables

systemd-networkd operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for systemd-networkd.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective statesystemd-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.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin 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 chainsystemd network unit files → match/precedence → netdev/link creation → networkd configuration/DHCP/RA → kernel address/route state → online semantics → packet path → workloadTrace requested/configured state through effective state to the observed workload result.
Failure boundarysystemd-networkd configured/online state proves only its own readiness model, not end-to-end application connectivity or remote dependency health.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux networking evidence can establish this proof path: systemd network unit files → match/precedence → netdev/link creation → networkd configuration/DHCP/RA → kernel address/route state → online semantics → packet path → workloadUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured namespace, interface, local kernel, L2/path or workload scope. systemd-networkd configured/online state proves only its own readiness model, not end-to-end application connectivity or remote dependency health.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue 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.

systemd-networkd · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundarysystemd-networkd
Topic pathLinux Networking → systemd-networkd
Runtime statesystemd-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.
Fast checks- List matching .link/.netdev/.network files in effective precedence for the interface. - Inspect networkd setup/operational state and journal messages for address, DHCP and route events. - Compare configured intent with kernel link/address/route and resolver state. - Verify the specific service dependency and original workload rather than relying on network-online alone.
Verification chainsystemd network unit files → match/precedence → netdev/link creation → networkd configuration/DHCP/RA → kernel address/route state → online semantics → packet path → workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundarysystemd-networkd configured/online state proves only its own readiness model, not end-to-end application connectivity or remote dependency health. Boundary chain: unit config/drop-ins → dependency/order/condition → exec/process → readiness/active state → owned socket/file/device → dependent client/workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?