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

How to redistribute all routes to BGP

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

1 Accepted Solution

Accepted Solutions

cofee
Level 5
Level 5

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.

View solution in original post

3 Replies 3

Jon Marshall
Hall of Fame
Hall of Fame

What is not working ?

There is no redistribute statement for OSPF under your BGP configuration.

Jon

cofee
Level 5
Level 5

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.

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