Configuring BGP Conditionally Injecting BGP Routes Command or Action Purpose Device(config-router)# exit Step 6 route-map map-tag [permit | deny] [sequence-number] Example: Device(config)# route-map LEARNED PATH _ permit 10 Configures a route map and enters route map configuration mode. Step 7 match ip address {access-list-number [access-list-number... | access-list-name...] | access-list-name [access-list-number... | access-list-name] | prefix-list prefix-list-name [prefix-list-name...]} Example: Device(config-route-map)# match ip address prefix-list SOURCE Specifies the aggregate route to which a more specific route will be injected.
• In this example, the prefix list that is named SOURCE is used to redistribute the source of the route. Step 8 match ip route-source {access-list-number | access-list-name} [access-list-number...| access-list-name...] Example: Device(config-route-map)# match ip route-source prefix-list ROUTE SOURCE _ Specifies the match conditions for redistributing the source of the route. • In this example, the prefix list that is named ROUTE SOURCE is used to _ redistribute the source of the route. Note The route source is the neighbor address that is configured with the neighbor remote-as command. The tracked prefix must come from this neighbor in order for conditional route injection to occur.
Step 9 exit Example: Device(config-route-map)# exit Exits route map configuration mode and enters global configuration mode. Step 10 route-map map-tag [permit | deny] [sequence-number] Example: Device(config)# route-map ORIGINATE permit 10 Configures a route map and enters route map configuration mode. Step 11 set ip address {access-list-number [access-list-number... | access-list-name...] | access-list-name [access-list-number... | Specifies the routes to be injected. In this example, the prefix list that is named originated routes is used to redistribute the _ source of the route. Configuring BGP 38