π ~1 min read
Table of contents
Symptom & Impact
Traffic to specific networks fails after reboot because static routes are missing.
Environment & Reproduction
Route added manually with route add but not persisted in rc.conf.
netstat -rn
cat /etc/rc.conf
Root Cause Analysis
Runtime route changes are ephemeral without route_* declarations in boot configuration.
Quick Triage
Compare runtime route table with expected policy routes.
route -n get
Step-by-Step Diagnosis
Validate routing service startup and route syntax in rc.conf.
service routing onestatus
grep -E "static_routes|route_" /etc/rc.conf

Solution – Primary Fix
Define static routes in rc.conf and reload routing service.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sysrc static_routes="netA"
sysrc route_netA="-net 10.20.0.0/16 192.0.2.1"
service routing restart

Solution – Alternative Approaches
Use dynamic routing daemon if topology changes frequently.
Verification & Acceptance Criteria
Routes persist after reboot and target subnets are reachable.
reboot
netstat -rn
Rollback Plan
Remove recent route_* entries if they cause asymmetric routing side effects.
Prevention & Hardening
Maintain route baseline templates and post-reboot network validation tests.
Related Errors & Cross-Refs
No route to host, route missing after reboot.
Related tutorial: View the step-by-step tutorial for freebsd-12.
View all freebsd-12 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
rc.conf routing variables and FreeBSD network administration handbook.
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.