BGP Conditional Route Injectio1
BGP Conditional Route Injectio1
A common practice with route-aggregation is to group a large address space into a single
address prefix. One result of aggregation is that routing accuracy of neighbors is lost.
Deaggregation is a feature that reconstructs components from a received aggregated
prefix. It is accomplished using BGP Conditional Route Injection feature. It is 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.
BGP tracks the aggregator specified in exist-map map2 to determine whether to inject
prefix(es) specified in inject-map map1. The exist-map must have atleast 2 match
clauses-
1. match ip address prefix-list specifies the aggregated route
2. match ip route-source specifies the source creating the aggregated route (IP
address specified with /32 prefix length)
The copy-attributes keyword allows more-specific routes to inherit the attributes of the
aggregated route; otherwise they are treated as locally originated routes.
Network topology
In AS 200, R4 router has address block 172.16.1.0/24 and R5 router has 172.16.2.0/24.
Both routers summarize their address space to single address 172.16.0.0/16 when
advertising to their eBGP peers in AS 100.
It is possible that traffic for 172.16.1.0/24 from R2 router might be exiting the AS via R3.
However, through traffic analysis, R2 router determines that the best path for
172.16.1.0/24 is through R4 router. Similarly, R3 router determines that the best path for
172.16.2.0/24 is through R5 router.
R2 configuration
R3 configuration
R2 injecting 172.16.1.0/24
The show ip bgp injected-paths command shows the prefixes injected into BGP table
when the condition is true. Notice the AS_PATH attribute. This attribute is "copied" from
the aggregated prefix due to the copy-attributes keyword added to bgp inject-map
command.
172.16.1.0/24 on R1
The similar is true for R3 router. If the link between R3 - R5 is operational, R5 advertises
aggregated prefix 172.16.0.0/16 to R3. The condition on R3 becomes true and it will
advertise 172.16.2.0/24 to its iBGP peers. Notice that the AS_PATH information is lost
for 172.16.2.0/24 prefix as the copy-attributes keyword was not used with bgp inject-
map command.
R3 injecting 172.16.2.0/24
R2 - R4 link is down
When the link between R2 - R4 goes down, R2 will not learn about aggregated prefix
172.16.0.0/16 from R4 router. Hence, the condition of exist-map is false, causing R2 to
NOT inject 172.16.1.0/24.
Since it 172.16.1.0/24 was advertised when the link was operational, once the link goes
down, R2 send UPDATE messages for 172.16.1.0/24 as Unreachable.
172.16.1.0/24 is Unreachable
The show ip bgp injected-paths command shows no prefix injected into BGP table by R2
and hence R1 will not receive 172.16.1.0/24.
No prefixes injected on R2
R2#