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

Route leaking of OSPF learned global routes to VRF routing table on IOS 15.1.2 SY7

parag waghmare
Level 1
Level 1

Hi Experts,

Hope you can help.

I am stuck in a situation. I am trying to leak OSPF connected and IA learned routes to VRF routing table. VRF is in MP-BGP address family named "VPN-NETWORKS" on WS-6509 IOS 15.1.2 SY5.

Following is the config :

 

conf t

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!! Leaking from GLOBAL to NETWORKS !!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!

!

ip prefix-list GLOBAL-TO-VPN-NETWORKS seq 5 permit 192.101.254.0/24 ge 30

ip prefix-list GLOBAL-TO-VPN-NETWORKS seq 10 permit 172.18.255.0/24 ge 30

!

route-map IMPORT-GLOBAL-TO-VPN-NETWORKS permit 10

 match ip address prefix-list GLOBAL-TO-VPN-NETWORKS

!

route-map IMPORT-GLOBAL-TO-VPN-NETWORKS deny 20

!

router bgp 64603

!

 address-family ipv4 unicast

 redistribute ospf 64603 route-map IMPORT-GLOBAL-TO-VPN-NETWORKS

 

 

vrf definition VPN-NETWORKS

 rd 50:266

 route-target export 50:64603

 route-target import 50:64603

 route-target import 1000:64603

 !

 address-family ipv4

  import ipv4 unicast map IMPORT-GLOBAL-TO-VPN-NETWORKS 

 exit-address-family

!

!

This is alright for connected routes. What I am doing is redistributing ospf into bgp. The router on which I am doing this is a building router bsr and has two links to the Distribution router DR. Both links are pt-to-pt ospf links with cost of one. Now my problem is once the ospf learned remote routes are redistributed into bgp. When I do sh ip bgp , it does not give me a next-hop ip address of one of the pt-to-pt links instead it puts 0.0.0.0 in next-hop. 

the route 192.101.254.252/32 is an IA ospf learned route and redistributed in bgp vrf VPN-NETWORKS.

when I do sh ip bgp , bgp is not able to work the next-hop. Does bgp think that they are equal cost multi-paths and gets confused ?

here is the out put for sh ip bgp

test-bsr-266#sh ip bgp
BGP table version is 14, local router ID is 192.101.254.243
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

Network                          Next Hop      Metric LocPrf     Weight   Path

*> 192.101.254.252/32    0.0.0.0          4                        32768    ?

On IOS 15.2.1 SY bgp becomes intelligent and adds one of the equal cost links as the next-hop but on IOS 15.1.2 SY7 it does not.

any help would be appreciated.

0 Replies 0
Review Cisco Networking products for a $25 gift card