cisco — Conditionally Injecting BGP Routes

Conditionally Injecting BGP Routes Use this task to inject more specific prefixes into a BGP routing table over less specific prefixes that were selected through normal route aggregation. These more specific prefixes can be used to provide a finer granularity of traffic engineering or administrative control than is possible with aggregated routes. To conditionally injecting BGp routes, perform this procedure: Before you begin This task assumes that the IGP is already configured for the BGP peers. Procedure Configuring BGP Conditionally Injecting BGP Routes Command or Action Purpose Step 11 copy running-config startup-config Example:

Device# copy running-config startup-config (Optional) Saves your entries in the configuration file. Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 router bgp autonomous-system-number Example: Device(config)# router bgp 40000 Enters router configuration mode for the specified routing process. Step 4 bgp inject-map inject-map-name exist-map exist-map-name [copy-attributes] Example:

Device(config-router)# bgp inject-map ORIGINATE exist-map LEARNED PATH _ Specifies the inject map and the exist map for conditional route injection. • Use the copy-attributes keyword to specify that the injected route inherits the attributes of the aggregate route. Step 5 exit Example: Exits router configuration mode and enters global configuration mode. Configuring BGP 37