📖 ~1 min read
Table of contents
Symptom & Impact
Boot time increases significantly while network-online dependencies wait for non-routable links.
Environment & Reproduction
Frequent on servers with optional or disconnected interfaces.
# Capture baseline
cat /etc/debian_version
systemd-analyze blame | head -n 20
systemctl status systemd-networkd-wait-online --no-pager
ip link
Root Cause Analysis
wait-online expects readiness on interfaces that are not required or never become routable.
Quick Triage
Confirm whether delayed interfaces are truly required during early boot.
# Quick triage
systemctl list-dependencies network-online.target
networkctl status || true
journalctl -b -u systemd-networkd-wait-online --no-pager | tail -n 80
Step-by-Step Diagnosis
Inspect interface state transitions and unit ordering to isolate delay sources.
# Detailed diagnosis
systemd-analyze critical-chain
networkctl list || true
cat /etc/systemd/network/*.network 2>/dev/null

Solution – Primary Fix
Mark non-critical links optional or constrain wait-online to required interfaces.
Still having issues? Our Server Management team can diagnose and resolve this for you. Get in touch for a free consultation.
# Primary fix
sudo mkdir -p /etc/systemd/system/systemd-networkd-wait-online.service.d
printf [Service]nExecStart=nExecStart=/lib/systemd/systemd-networkd-wait-online --any --timeout=15n | sudo tee /etc/systemd/system/systemd-networkd-wait-online.service.d/override.conf
sudo systemctl daemon-reload

Solution – Alternative Approaches
Remove strict network-online dependencies from services that can start without immediate network.
# Alternatives
systemctl cat | sed -n 1,80p
sudo systemctl edit
Verification & Acceptance Criteria
Boot timing improves and dependent services remain healthy.
# Verify
reboot
systemd-analyze
systemd-analyze blame | head -n 20
Rollback Plan
Remove the override and restore default wait-online behavior if dependencies break.
# Rollback
sudo rm -f /etc/systemd/system/systemd-networkd-wait-online.service.d/override.conf
sudo systemctl daemon-reload
Prevention & Hardening
Document required-at-boot interfaces and keep network definitions explicit.
# Hardening
ls /etc/systemd/network
networkctl list || true
Related Errors & Cross-Refs
Related to network-online.target stalls and startup dependency ordering failures.
Related tutorial: View the step-by-step tutorial for Debian 9.
View all Debian 9 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
systemd-networkd and wait-online unit documentation.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.