Cisco Cisco IOS Software Release 12.2(14)S

Page of 16
      BGP Conditional Route Injection
Monitoring and Maintaining BGP Conditional Route Injection
6
Cisco IOS Release 12.0(14)ST, 12.2(4)T, 12.2(14)S, and 12.0(22)S
Troubleshooting Tips
The BGP Conditional Route Injection feature is based on the injection of a more specific prefix into the 
BGP routing table when a less specific prefix is present. If conditional route injection is not working 
properly, check the following:
If conditional route injection is configured but does not occur, check for the existence of the 
aggregate prefix in the BGP routing table. The existence (or not) of the tracked prefix in the BGP 
routing table can be verified with the show ip bgp command. 
If the aggregate prefix exists but conditional route injection does not occur, verify that the aggregate 
prefix is being received from the correct neighbor and the prefix list identifying that neighbor is a 
/32 match. 
Verify the injection (or not) of the more specific prefix using the show ip bgp injected-paths 
command.
Verify that the prefix that is being injected is not outside of the scope of the aggregate prefix.
Ensure that the inject route map is configured with the set ip address command and not the match 
ip address
 command. 
Monitoring and Maintaining BGP Conditional Route Injection
To display BGP conditional advertisement information, use the following commands in EXEC mode, as 
needed: 
Configuration Examples
This following configuration example configures conditional route injection for the inject-map named 
ORIGINATE and the exist-map named LEARNED_PATH: 
router bgp 109
bgp inject-map ORIGINATE exist-map LEARNED_PATH
!
route-map LEARNED_PATH permit 10
match ip address prefix-list ROUTE
match ip route-source prefix-list ROUTE_SOURCE
!
route-map ORIGINATE permit 10
set ip address prefix-list ORIGINATED_ROUTES
set community 14616:555 additive
!
ip prefix-list ROUTE permit 10.1.1.0/24
!
ip prefix-list ORIGINATED_ROUTES permit 10.1.1.0/25
ip prefix-list ORIGINATED_ROUTES permit 10.1.1.128/25
!
ip prefix-list ROUTE_SOURCE permit 10.2.1.1/32 
Command
Purpose
Router# show ip bgp
Displays entries in the BGP routing table.
Router# show ip bgp injected-paths
Displays paths in the BGP routing table that were conditionally injected.
Router# show ip bgp neighbors
Displays information about the TCP and BGP connections to neighbors.