BGP Conditional Route Injection
BGP Conditional Route Injection
The BGP conditional route injection feature allows the creation of more-specific prefixes
when an aggregate exists. These prefixes are injected in to local BGP table to provide
more specific routing information in local AS than aggregated route. This can be used to
optimize the exit points of the local AS.
R1 configuration
R2 configuration
R3 configuration
R1(config-router)#do sh ip bgp
BGP table version is 6, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R3#sh ip bgp
BGP table version is 8, local router ID is 23.23.23.3
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R3(config-router)#do sh ip bgp
BGP table version is 21, local router ID is 23.23.23.3
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R3(config-router)#do sh ip bgp
BGP table version is 16, local router ID is 23.23.23.3
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Comments
For conditional route injection: you must use Prefix-lists, NOT ACLs.
We can only originate more specific subnets of an existing aggregate prefix.