π ~1 min read
Table of contents
Symptom & Impact
Manual netplan changes revert on reboot, causing network instability.
Environment & Reproduction
Common on cloud images where cloud-init controls network config.
cloud-init status --long
ls -l /etc/netplan
sudo reboot
Root Cause Analysis
cloud-init datasource regenerates netplan files at boot.
Quick Triage
Confirm cloud-init ownership and inspect generated network artifacts.
grep -R network: /etc/cloud/cloud.cfg /etc/cloud/cloud.cfg.d -n
ls -l /etc/netplan
cloud-init query --all | head -n 40
Step-by-Step Diagnosis
Review cloud-init logs and generated network JSON.
sudo journalctl -u cloud-init -n 120
sudo cat /run/cloud-init/network-config.json
sudo cloud-init analyze blame

Solution – Primary Fix
Disable cloud-init networking and manage netplan directly.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
echo 'network: {config: disabled}' | sudo tee /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
sudo rm -f /etc/netplan/50-cloud-init.yaml
sudo netplan generate
sudo netplan apply

Solution – Alternative Approaches
Keep cloud-init enabled and update seed user-data instead.
sudoedit /var/lib/cloud/seed/nocloud-net/user-data
sudo cloud-init clean --logs
sudo reboot
Verification & Acceptance Criteria
Network configuration remains stable across restarts.
sudo reboot
ls -l /etc/netplan
ip -br a
Rollback Plan
Remove disable file and let cloud-init manage network again.
sudo rm -f /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
sudo cloud-init clean --logs
sudo reboot
Prevention & Hardening
Define network ownership policy per image and environment.
cloud-init status --long
ls /etc/cloud/cloud.cfg.d
Related Errors & Cross-Refs
Related to DHCP metric conflicts and metadata service changes.
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
Ubuntu cloud-init and netplan integration docs.
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.