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

Problem in Redistribution in Nexus 9K

BILAL JAVED
Level 1
Level 1

BILALJAVED_0-1697031441747.png

 

 

Hello Guys, I am using this topology in my new setup. In which I am running EBGP between the 2 Nexus Switches and OSPF between Nexus and Cisco Router. EBGP and OSPF neighborships are up. But the problem is that from Nexus 9k on Site-1 I can not ping the OSPF routes learnt from Cisco Router2 in Site 2. Similarly, from Nexus 9k on Site-2 I can not ping the OSPF routes learnt from Cisco Router1 in Site 1. Below is the configuration I am running on the Nexus Switches. I was thinking there is some problem in the redistribution from OSPF to BGP or from BGP to OSPF. Can you please help me on this ???

 

ip prefix-list OSPF-ROUTE seq 5 permit 11.16.0.1/32 
ip prefix-list OSPF-ROUTE seq 10 permit 11.16.1.1/32 
route-map ANYONE permit 10 
route-map OSPF-BGP permit 10
  match ip address prefix-list OSPF-ROUTE

 

router ospf 1
  redistribute bgp 85001 route-map ANYONE
router bgp 85001
  log-neighbor-changes
  address-family ipv4 unicast
    network 10.0.1.200/30
    network 10.0.250.0/30
    network 10.1.1.4/30
    network 10.1.2.4/30
    network 10.1.2.28/30
    redistribute ospf 1 route-map OSPF-BGP

  neighbor 10.1.2.6
    remote-as 85003
    description eBGP Peering - LD5 PE1
    address-family ipv4 unicast
      next-hop-self

 

10 Replies 10

Add to redistrubte match internal external 

And check again 

You mean to say "match ethernet interface" within route-map ??

redistribute ospf 1 route-map OSPF-BGP match internal external 

And 

redistribute bgp 85001 route-map anyone subnet 

Can you please give the commands ?

redistribute ospf 1 route-map OSPF-BGP match internal external 

Nexus is not taking this command. And to note that we already have OSPF subnets defined in the following commands.

ip prefix-list OSPF-ROUTE seq 5 permit 11.16.0.1/32 
ip prefix-list OSPF-ROUTE seq 10 permit 11.16.1.1/32 

 

Secondly, for "redistribute bgp 85001 route-map anyone subnet". I have done it by adding all the subnets separately but that was also not working. That is why I gave below commands. And doesn't the below commands mean that everything is permitted ??   

redistribute bgp 85001 route-map ANYONE

route-map ANYONE permit 10  

 

 

 

Match route-type internal external 

Add this in route-map of redistrubte ospf into bgp

And again you need subnet keyword in redistrubte bgp into ospf.

Do these two steps in both sites.

 

Match route-type internal external 

Add this in route-map of redistrubte ospf into bgp  >>>> This one is done.

And again you need subnet keyword in redistrubte bgp into ospf. >>>> This one is not done as Nexus is not accepting the subnet keyword at the end of this command "redistribute bgp 85001 route-map anyone subnet".

Ok' some new IOS and I think NSK by default redistrubte classless.

Any way when you add match do you see predix redistrubte from ospf into bgp and then into ospf ?

Update me when you can.

MHM

Hello
By default only OSPF typ1/2 routes (intra-area and inter-area) are redistributed if you do not specify any additional keywords such as internal/external

try the following:
router bgp 85001
redistribute ospf 1 route-map OSPF-BGP match internal external 1 external 2


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul