09-29-2017 06:52 AM - edited 03-05-2019 09:13 AM
I have a dual-hub DMVPN setup running OSPF. The issue I am having that the default route that's being injected is preferred on the secondary hub instead of the primary. I've tried adjusting the metric on the default route, changing the admin distance on the secondary hub router, all with no luck. I'm looking for any other suggestions as to why the spoke prefers the secondary hub versus the primary. I have also set the ospf cost on router 1 to be lower than router 2. It might be something simple that I'm just no seeing.
09-29-2017 07:22 AM
Try below configs on both the Hubs and make ip tcp adjust-mss value to 1360
HUB(config-if)# ip nhrp holdtime 300
HUB1(config-if)#ip nhrp redirect
Let us know if this works.
Cheers!
09-29-2017 07:52 AM
No joy. The default route is still preferred over the secondary hub router.
09-29-2017 07:58 AM - edited 09-29-2017 08:09 AM
Hi
You can try:
Primary
router ospf 700 vrf Customer
default-information originate metric 10
Secondary
router ospf 700 vrf Customer
default-information originate metric 200
It should fix the inconvenience. The spokes should prefer the path with the lowest cost.
:-)
09-29-2017 08:25 AM
I made the change, cleared the OSPF process and still no change. I had thought the same thing and added 'default-information originate metric 10' on HUB2 while leaving HUB1 as default with similar results. I do agree that given the metrics the preferred route should be HUB1, but even if I added a higher metric to the static route itself, i.e. ip route 0.0.0.0 0.0.0.0 x.x.x.x 100, I get the same result.
09-29-2017 08:26 AM - edited 09-29-2017 08:28 AM
Hi David,
Have you turned off the Hub 2 in order to verify if Hub 1 is really advertising the default route? or remove the default-information originate on R2 to see the behavior?
09-29-2017 09:03 AM
If I shut down the tunnel on HUB2, I lose the adjacency and the default route is learned via HUB1. Once I bring the tunnel back up on HUB2, the default route resumes on HUB2.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide