With redistribution, the user specifies the source protocol in BGP router or address family configuration mode. Redistribution can be configured for all routes of the specified type or routes can be filtered using a route-map.
Redistribution entries are created with a specified source and destination protocol to allow redistribution from the source to the destination protocol. The user can also configure a route-map to specify a set of matching prefixes as well as to set route attributes on matching routes.
In the S- and 7100-Series implementation for the redistribution route-map, matching is performed only on an IP prefix as specified in an access-list. The redistribution command line allows for setting MED, local-preference, AS-path limit, and origin to matching routes. Filtering on AS-path regular expressions is supported; see Using AS-Path Regular Expressions.
BGP route-maps support setting the AS, AS-path limit, community, a number of extended community values, local preference, MED, IP next hop, origin, ORF-association local, weight, and flap table. See Route-Map Manager Configuration for BGP route-map configuration details.
Use the redistribute connected command, optionally specifying a route-map, AS-path limit, origin, MED, and local preference for the route, to inject all or filtered connected routes into BGP.
In the following example BGP is configured to redistribute connected routes that match the contents of the connRoute route-map:
System(su-config)->router bgp 65151 System(su-config-bgp)->redistribute connected route-map connRoute
Use the redistribute rip command, optionally specifying a route-map, AS-path limit, origin, MED, and local preference for the route, to inject all or filtered RIP routes into BGP.
In the following example BGP is configured to redistribute all RIP routes with the local preference set for 100.
System(su-config)->router bgp 65151 System(su-config-bgp)->redistribute rip local-pref 100
Use the redistribute static command, optionally specifying a route-map, AS-path limit, origin, MED, and local preference for the route, to inject all or filtered static routes into BGP.
In the following example BGP is configured to redistribute all static routes with the local preference set for 100.
System(su-config)->router bgp 65151 System(su-config-bgp)->redistribute static local-pref 100
Use the redistribute ospf command, optionally specifying the route-map, AS-path limit, origin, MED, and local preference attributes for the route, to inject all or filtered OSPF routes into BGP.
In the following example BGP is configured to redistribute OSPF routes that match the contents of the OSPFroutes route-map.
System(su-config)->router bgp 65151 System(su-config-bgp)->redistribute ospf route-map OSPFroutes