10-11-2023 06:44 AM
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-11-2023 06:47 AM
Add to redistrubte match internal external
And check again
10-11-2023 07:05 AM
You mean to say "match ethernet interface" within route-map ??
10-11-2023 07:08 AM
redistribute ospf 1 route-map OSPF-BGP match internal external
And
redistribute bgp 85001 route-map anyone subnet
10-11-2023 07:08 AM
Can you please give the commands ?
10-11-2023 07:56 AM
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
10-11-2023 08:13 AM
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.
10-11-2023 09:30 AM
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".
10-11-2023 09:34 AM
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 ?
10-13-2023 09:54 AM
Update me when you can.
MHM
10-13-2023 12:49 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide