Why aggregation needs attributes
With aggregate-address a router creates one summary prefix to stand for many specific ones. The more specific routes carried their own AS paths. A plain summary starts a fresh path, so that information is lost. BGP uses two attributes to record that fact.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
ATOMIC_AGGREGATE
ATOMIC_AGGREGATE is a well-known discretionary attribute with no value. It is a flag: this route is a summary that may have dropped AS path details. A router that receives it must not de-aggregate it into more specific routes, and it must keep the flag when it passes the route on.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
AGGREGATOR
AGGREGATOR is an optional transitive attribute that records the AS number and router ID of the router that formed the summary. It answers the question of who built the aggregate, which is useful when you see an unexpected summary.
router bgp 64500
address-family ipv4 unicast
aggregate-address 198.51.100.0 255.255.255.0 summary-only
aggregate-address 203.0.113.0 255.255.255.0 as-setThe first line creates a summary and hides the specific routes. The second also builds an AS set from the component routes.
Reading them
R2#show ip bgp 198.51.100.0 BGP routing table entry for 198.51.100.0/24, version 9 Paths: (1 available, best #1, table default) 64501 192.0.2.1 from 192.0.2.1 (11.11.11.11) Origin IGP, metric 0, localpref 100, valid, external, atomic-aggregate, best Aggregator: AS 64501, 11.11.11.11
Check your understanding
Which attribute flags a route as a summary that may have lost AS path detail?
What does AGGREGATOR carry?
Aggregation with as-set is configured. What happens to path information?