Other OSPF Features default gateway ( CCNP Encor )
-
Hi everyone,
Just watched the videos about OSPF. i noticed 1 thing that isnt clear to me. The default gateway options that it can be tricky if you do it wrong, but how will OSPF handle 2 default gateways? Just like other router it calculates the best path? Or does OSPF have another trick for that?
Thanks in advance!
-
What an excellent question Diego! Congrats!
Yes, things get very interesting with multiple default gateways in OSPF! Yes - if the two different default routes have the same cost - they might get load balanced, but things can get weird fast!
For example, what if one of the default gateways is in a different area! Now you will not see load balancing by default because OSPF prefers intra-area routes over inter-area routes!
Yet another consideration here is the external metric type set in OSPF. Remember, you have two types. - a type where the cost through the local area is ignored, and a type where the cost is incremented as the route travels in the area.
OSPF is fun!