Showing results for 
Search instead for 
Did you mean: 

Doubt to check the priority of OSPF learned route.


Hi  all ¡¡

I have a virtual environment mounted with Gns3.

I have an environment of several L3 switches 3600 Software (C3640-IK9O3S-M), Version 12.4(25b) connected to area 0 OSPF.

Specifically, a switch connects through 2 different networks to area 0. It learns a network twice ( from 2 different neighbors, each of them on a different network. I don't know how I can see why it chooses one or the other route, when adding it  to the route table. He always chooses the same destination in to the routing table and only if that neighbor is down, does he put the other one. Could you tell me why it takes one route and not the other? How can I see it?

"SW1#show ip route
Routing entry for
Known via "ospf 1", distance 110, metric 20, type extern 2, forward metric 1
Last update from on Vlan404, 00:20:28 ago
Routing Descriptor Blocks:
*, from, 00:20:28 ago, via Vlan404
Route metric is 20, traffic share count is 1"

CORE#show ip ospf database 1368 0x80000001 0x00DE2F 0 1367 0x80000001 0x00D834 0


I understand that if I don't have the route twice in the route table, is it because one has better costs than the other? Or maybe because you learn on different networks in the same area?

Thanks '¡¡¡¡¡


1 Accepted Solution

Accepted Solutions

MHM Cisco World

issue sile.png

The issue start when you 
redistribute connect subnet in R2 & R3 for subnet 
even so this subnet connect two ospf router neighbor
this make R2 and R3 advertise E2 of to R1
R1 will advertise both E2 but
R4 will process one because this prefix is pass through same Neighbor so R4 will only process one E2 not both. 

View solution in original post

15 Replies 15

David Ruess
Rising star
Rising star



OSPF chooses routes the following way:

  • Priority – Intra area, Inter area, E1, E2, N1, N2.

So even at a higher cost it could still choose Intra-area routes over Inter area routes. 

Can you provide the metrics of how both routes are learned from SW1 perspective ? I diagram would be helpful as well.

Also OSFP only does ECMP which means it only installs routes in the routing table of multiple paths if their metrics match.




Hi David,

How can I view the metrics? It's just what I don't know how to consult. A command that tells me which of the two routes is better and why.

MHM Cisco World
forward metric 1<<- 

Check the forward metric of second route if it same or not, forward metric can be tie breaker here.

How can I check the forward metric? Wich command?