cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1817
Views
0
Helpful
3
Replies

Multiple Default routes and OSPF default information originate

geons
Level 1
Level 1

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 :)

3 Replies 3

rais
Level 7
Level 7

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.

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.

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.