π ~1 min read
Table of contents
Symptom & Impact
Manual netplan changes revert after reboot. IP, DNS, or routes return to cloud-provided defaults.

Environment & Reproduction
Common on cloud images where cloud-init generates network files on first and subsequent boots.

Root Cause Analysis
cloud-init datasource applies network configuration and overwrites local admin netplan files.

Quick Triage
Run cloud-init status –long and inspect /etc/netplan/50-cloud-init.yaml for generated settings.

Step-by-Step Diagnosis
Review cloud-init logs in /var/log/cloud-init.log and check datasource metadata with cloud-init query ds.

Solution – Primary Fix
Create /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with ‘network: {config: disabled}’, then define your own netplan YAML and run 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
Keep cloud-init enabled but set desired static network in instance metadata where platform allows it.

Verification & Acceptance Criteria
After reboot, custom netplan remains unchanged and interface configuration matches expected static settings.

Rollback Plan
Remove disable file and regenerate cloud-init defaults with sudo cloud-init clean –logs, then reboot.

Prevention & Hardening
Document whether image instances are cloud-init managed before local network edits.

Related Errors & Cross-Refs
Related symptoms include recurring DHCP assignment and overwritten /etc/netplan files.
Related tutorial: View the step-by-step tutorial for Ubuntu 26.04 LTS.
View all Ubuntu 26.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading
cloud-init docs for network configuration and Ubuntu cloud image 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.