06-28-2018 07:43 AM - edited 03-05-2019 10:40 AM
I have one router with two default routes
ip route vrf ivrf 0.0.0.0 0.0.0.0 10.1.151.6 track 1
ip route vrf ivrf 0.0.0.0 0.0.0.0 10.1.181.6 100 track 2
And under ospf, I have default-information originate command.
I would like to know which default route will be advertised by ospf?
Thanks :)
06-28-2018 08:07 AM
OSPF is not going to take one of these routes and advertise it into OSPF domain. It's going to simply generate and advertise a new default-route to itself [this vrf]
HTH.
06-28-2018 08:47 AM
Thanks for quick reply.
In one of my router, default route advertised by ospf is pointing to 10.1.151.6. I believe the router only advertises a default route if it has one in its own routing table. In this case default route pointing to 10.1.151.6 is in the routing table.So, OSPF is advertising the same. Correct me If I am wrong.
06-28-2018 09:26 AM - edited 06-28-2018 09:32 AM
That's correct. Router only advertises default route if one is already in routing-table, unless always keyword is used with default-information originate command.
I am not sure why 10.1.151.6 next-hop is chosen. It could be that the cost to reach 10.1.151.6 is lesser when compared to the other available next-hop.
HTH.
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