Monday, September 9, 2019

Redistribute OSPF Routes to BGP - Cisco IOS XE

Hello all,

I have a question about BGP configuration on Cisco IOS XE.

Here is an example configuration:

router bgp 1111 network 1.1.1.0 mask 255.255.252.0 neighbor 2.2.2.2 remote-as 2222 

The command I plan to add in order to redistribute OSPF routes into BGP is:

router bgp 1111 redistribute ospf 1 

So, let's say OSPF process 1 has routes for the following subnets (from OSPF neighbor):

1.1.2.0/24

1.1.3.0/28

1.1.3.16/28

10.10.10.0/24

Will BGP only add the OSPF routes contained in the "network 1.1.1.0 mask 255.255.252.0" config line, or will the RFC 1918 route 10.10.10.0/24 get added to the BGP table as well? Would I have to apply a prefix-filter to keep BGP from attempting to distribute the private address prefix?



No comments:

Post a Comment