05-24-2017 12:23 PM - edited 03-05-2019 08:35 AM
Hi,
I have two routers in AS 65010; i.e. R1 & R2. R1 has static routes, OSPF( IA, N1, E1 and E2 types) routes, as well as eBGP routes that it learns from its neighbors. I would like R1 to redistribute ALL its routes to R2 as BGP routes. Is it possible without running OSPF on R2?
I tried the following code but failed:
R1: router bgp 65010
network 10.10.171.0 mask 255.255.255.0
bgp redistribute-internal
redistribute connected
neighbor 2.2.2.2 remote-as 65010
neighbor 2.2.2.2 ebgp-multihop 5
neighbor 2.2.2.2 update-source l0
neighbor 2.2.2.2 next-hop-self
Note: 2.2.2.2 is loopback0 of R2. BGP peering between R1 and R2 is up.
Thank you in advance
Warren
Solved! Go to Solution.
05-24-2017 01:17 PM
As Jon stated you need to add redistribute ospf and static commands. I just wanted to add that when you redistribute ospf into bgp it's different from redistributing ospf into another IGP.
Below is the command to redistribute ospf into bgp:
redistribute ospf AS match external internal nssa-external
* you would need to specify what ospf routes you want to redistribute into bgp.
05-24-2017 12:30 PM
What is not working ?
There is no redistribute statement for OSPF under your BGP configuration.
Jon
05-24-2017 01:17 PM
As Jon stated you need to add redistribute ospf and static commands. I just wanted to add that when you redistribute ospf into bgp it's different from redistributing ospf into another IGP.
Below is the command to redistribute ospf into bgp:
redistribute ospf AS match external internal nssa-external
* you would need to specify what ospf routes you want to redistribute into bgp.
05-26-2017 05:30 AM
Thank you to both Jon and cofee@0400.
I was hoping not to use OSPF, and advertise those OSPF and static routes as ibgp routes if possible, since R1 and R2 are in the same AS. Internally, we have a mess with OSPF, too many area 0s from acquiring other companies over time.
Thanks again
Warren
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