02-21-2020 11:26 AM
Good Morning Everyone,
I have two routers: Router1 with iBGP and OSPF routing processes. Router1 has iBGP to Router2, and OSPF to an external router over Tunnel100. I am redistributing the OSPF routes into iBGP using the following:
"redistribute ospf 1 metric 100 internal external 1 external 2"
This works. I see all OSPF routes in the routing table of Router1.
I do not see any OSPF or iBGP routes on Router2, although I do see a neighbor-ship between the two.
Router1 sees routes from Router2.
No route-maps, prefix-lists, or ACLs are in play. What is going on??
Thank you for your assistance.
02-21-2020 11:33 AM
Hello,
hard to say...can you post the configs of R1 and R2 ?
02-21-2020 12:30 PM
Hello
Its not clear on your topology, you mention ibgp peering between the two rtrs but no ebgp connections and also ospf, Can you post the diagram please
02-21-2020 11:55 PM - edited 02-21-2020 11:59 PM
Hello,
reading through your post again: on which router are you redistributing OSPF into BGP ?
"redistribute ospf 1 metric 100 internal external 1 external 2"
This works. I see all OSPF routes in the routing table of Router1.
You would see the OSPF routes in the routing table of Router 1 regardless of the redistribution...so I am not really clear on which router the redistribution is taking place, maybe I am missing something...
In theory, a simple configuration such as the one below should work:
R1
router ospf 1
router-id 1.1.1.1
network 0.0.0.0 255.255.255.255 area 0
!
router bgp 1
bgp router-id 1.1.1.1
bgp log-neighbor-changes
redistribute ospf 1 metric 100 match internal external 1 external 2
neighbor 192.168.12.2 remote-as 1
R2
router bgp 1
bgp router-id 2.2.2.2
bgp log-neighbor-changes
neighbor 192.168.12.1 remote-as 1
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