π ~1 min read
Table of contents
Symptom & Impact
Manual netplan static IP changes disappear after reboot.
Environment & Reproduction
Cloud image of Ubuntu 20.04 with default cloud-init network handling.
Root Cause Analysis
cloud-init re-renders network files from datasource metadata on boot.
Quick Triage
Inspect /etc/cloud/cloud.cfg.d and generated netplan comments for origin clues.
Step-by-Step Diagnosis
Confirm whether cloud-init owns networking and identify datasource behavior.

Solution – Primary Fix
Disable cloud-init network config and maintain static settings in netplan.
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
Update datasource metadata to provide desired persistent addressing.
Verification & Acceptance Criteria
Reboots retain static IP configuration without regeneration.
Rollback Plan
Re-enable cloud-init networking if dynamic provisioning is required.
Prevention & Hardening
Define network ownership policy in golden images and deployment templates.
Related Errors & Cross-Refs
Interface renaming and route drift can occur with repeated regenerations.
Related tutorial: View the step-by-step tutorial for Ubuntu 18.04 LTS.
View all Ubuntu 18.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu cloud-init networking behavior and disable mechanisms.
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.