cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
510
Views
5
Helpful
3
Replies

ospf

cisco8887
Level 2
Level 2

Hi All,

Is it possible to see the prefix or subnets advertised within an area ?

I know you can see that using LSA type 3 in a different area or n ABR but cannot see it within area

For instance to R5 as follow

R1-->R2-->R5

R1-->R4-->R5

What I am trying to find out on R1 is how many routes I have to R5 which I can only see the active one and that is by using show ip route

I can't see it in show ip ospf database.

Plase advise

1 Accepted Solution

Accepted Solutions

Mark Malone
VIP Alumni
VIP Alumni

Ospf will only put multiple routes in table if the metrics are equal , its not like bgp where there are multiple paths installed and based on a preferred route and you can still view the less preferred  , ospf will only add the best route or equal routes that match exactly in cost

if the path from r1 - r5 is equal in cost  over r2 and r4 you should see 2 routes but if if one is gig and the other fast Ethernet the gig will be put in the table , I don't think there is a way to see the routes that it decides not to put in the table after it calculates the best path if I understood you correctly probably because its link state and everyone knows what each other knows it may be a resource issue why its not viewable lsdb can get very large in certain networks having multiple routes that are not required in the table , more information that has to be shared and processed

OSPF-running routers use these criteria to select the best route to be installed in the routing table:

A) When there are multiple routes available to the same network with different route types, routers use this order of preference (from highest to lowest): 1. Intra-area routes. 2. Inter-area routes. 3. External Type-1 routes. 4. External Type-2 routes.
B) If there are multiple routes to a network with the same route type, the OSPF metric calculated as cost based on the bandwidth is used for selecting the best route. The route with the lowest value for cost is chosen as the best route.
C) If there are multiple routes to a network with the same route type and cost, it chooses all the routes to be installed in the routing table, and the router does equal cost load balancing across multiple paths.

View solution in original post

3 Replies 3

Mark Malone
VIP Alumni
VIP Alumni

Ospf will only put multiple routes in table if the metrics are equal , its not like bgp where there are multiple paths installed and based on a preferred route and you can still view the less preferred  , ospf will only add the best route or equal routes that match exactly in cost

if the path from r1 - r5 is equal in cost  over r2 and r4 you should see 2 routes but if if one is gig and the other fast Ethernet the gig will be put in the table , I don't think there is a way to see the routes that it decides not to put in the table after it calculates the best path if I understood you correctly probably because its link state and everyone knows what each other knows it may be a resource issue why its not viewable lsdb can get very large in certain networks having multiple routes that are not required in the table , more information that has to be shared and processed

OSPF-running routers use these criteria to select the best route to be installed in the routing table:

A) When there are multiple routes available to the same network with different route types, routers use this order of preference (from highest to lowest): 1. Intra-area routes. 2. Inter-area routes. 3. External Type-1 routes. 4. External Type-2 routes.
B) If there are multiple routes to a network with the same route type, the OSPF metric calculated as cost based on the bandwidth is used for selecting the best route. The route with the lowest value for cost is chosen as the best route.
C) If there are multiple routes to a network with the same route type and cost, it chooses all the routes to be installed in the routing table, and the router does equal cost load balancing across multiple paths.

Have you tried show ip Ospf database all? I would think this would show all the LSAs which would show paths through both neighbors. 

HTH

Rick

HTH

Rick

can't see that command ( all at the end )