π ~1 min read
Table of contents
Symptom & Impact
Custom static routes vanish after boot, breaking connectivity to backend networks.
Environment & Reproduction
Seen mostly on cloud images with nm-cloud-setup enabled.
ip route
systemctl status nm-cloud-setup.service
Root Cause Analysis
Cloud network automation reapplies metadata-derived routes over local static definitions.
Quick Triage
Check cloud-setup timers and NetworkManager logs.
systemctl list-timers | grep nm-cloud
journalctl -u NetworkManager -n 80
Step-by-Step Diagnosis
Track route table changes after cloud setup runs.
journalctl -u nm-cloud-setup -n 100
ip monitor route

Solution – Primary Fix
Disable nm-cloud-setup when static routes are authoritative.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo systemctl disable --now nm-cloud-setup.service nm-cloud-setup.timer
sudo nmcli connection modify prod-lan +ipv4.routes '10.20.0.0/16 10.10.10.1'
sudo systemctl restart NetworkManager

Solution – Alternative Approaches
Keep cloud setup enabled but encode routes in cloud metadata if platform supports it.
Verification & Acceptance Criteria
Routes persist across reboot and no unexpected rewrites occur.
reboot
ip route
Rollback Plan
Re-enable nm-cloud-setup if dynamic cloud-managed networking is required.
sudo systemctl enable --now nm-cloud-setup.timer
Prevention & Hardening
Decide one source of truth for routes and enforce with host profiles.
Related Errors & Cross-Refs
Often coupled with DNS override and default gateway flapping.
Related tutorial: View the step-by-step tutorial for oracle-linux-10.
View all oracle-linux-10 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
NetworkManager cloud integration behavior on RHEL images.
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.