Hello community,
i have a problem with OSPF vs STATIC default routes.
Normally, our routers get their default route via OSPF, distributed by one of our BGP Uplinks. These routes have a distance of 110 (OSPF default)
Some routers also have slower, more expensive (cost per MBit 95% percentil) uplinks that should take over if no OSPF default route is active. These default routes are static and have distance of 250.
If OSPF default route is active while i add these fallback routes, everything works fine and the static route takes over if the OSPF default route drops, but it naver changes back if OSPF default route should be up again and i have to disable the static default route, wait for OSPF default route comes active and reactivate the static route to have a fallback for next outage.
[R1]
static default route via 1.2.3.4 distance 250
ospf default route via R2 distance 110 (Distributed by R3)
[R2]
ospf default route via R3 (Distributed by R3)
[R3]
static default route via 2.3.4.5 distance 1
If default route from R3 goes down in OSPF for some reason (unreachable because of pingcheck, router down, some router between R1 und R3 down etc) static default on R1 goes up but never switches back to OSPF if default route distribution from R3 recovers until i disable static default on R1.
Any ideas how to solve this?
Regards
Manuel Ritter