cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
239
Views
0
Helpful
1
Replies

Routing protocol preference

olly ahmed
Level 1
Level 1

Hi guys, As far as I know if a router learns a specific route from different routing protocol then it will prefer routes in this sequence eBGP > EIGRP > OSPF > IS-IS > RIP > iBGP. But in my nexus 7k I saw my router is learning routes 10.1.36.0/24 10.1.37.0/24 from eBGP as well as from OSPF. But when I see routing table it shows OSPF routes rather eBGP. Can anyone explain why it is happening. Below is FYI.

 

test# show ip bgp neighbors 172.18.162.81 routes vrf GTR

  

   Network            Next Hop            Metric     LocPrf     Weight Path

* e10.1.36.0/24       172.18.162.81                                  0 4828 ?

* e10.1.37.0/24       172.18.162.81                                  0 4828 ?

*>e10.1.38.0/24       172.18.162.81                                  0 4828 10081 ?

 

test# show ip route vrf GTR | sec 10.1.3


10.1.36.0/24, ubest/mbest: 1/0
*via 172.18.162.170, Eth2/2.809, [110/1], 6w6d, ospf-1, type-2, tag 4828
10.1.37.0/24, ubest/mbest: 1/0
*via 172.18.162.170, Eth2/2.809, [110/1], 6w6d, ospf-1, type-2, tag 4828
10.1.38.0/24, ubest/mbest: 1/0
*via 172.18.162.81, [20/0], 3w2d, bgp-64511, external, tag 4828
10.1.39.0/24, ubest/mbest: 1/0
*via 172.18.162.170, Eth2/2.809, [110/1], 6w6d, ospf-1, type-2, tag 4828

1 Reply 1

Richard Burts
Hall of Fame
Hall of Fame

This is a duplicate post of a question in the LAN Switching forum where I have posted a response. I suggest that all discussion of this question be focused on the LAN forum.

HTH

Rick

HTH

Rick
Review Cisco Networking for a $25 gift card