📖 ~1 min read
Table of contents
Symptom & Impact
Server boots without network connectivity or loses connection after netplan apply.
Environment & Reproduction
Ubuntu 24.04 server using netplan with systemd-networkd. Reproduced by editing /etc/netplan/*.yaml.
Root Cause Analysis
YAML indentation errors, wrong interface names, incorrect renderer, or invalid static route syntax.
Quick Triage
Use sudo netplan generate to validate config before apply. Confirm NIC names with ip link.
Step-by-Step Diagnosis
Run sudo netplan –debug generate and inspect systemd-networkd logs via journalctl -u systemd-networkd. Compare with cloud-init generated files.

Solution – Primary Fix
Correct YAML structure and interface IDs, then run sudo netplan try for timed rollback safety followed by sudo netplan apply.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Switch renderer to NetworkManager on desktop-class installs if dynamic interface management is required.
Verification & Acceptance Criteria
ip addr shows expected addresses, default route exists, DNS resolves, and reboot preserves connectivity.
Rollback Plan
Restore previous netplan file from backup and run netplan apply from console access.
Prevention & Hardening
Use staged changes with netplan try and version-control /etc/netplan for auditability.
Related Errors & Cross-Refs
Invalid YAML, failed to apply network config, no DHCP lease acquired.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Netplan official docs, systemd-networkd manual, and Ubuntu networking guide.
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.