Route Aggregation · Lesson 01 of 01
Aggregating without losing the detail
Aggregation shrinks the table, but a naive aggregate throws away the AS_PATH history and can create loops. as-set fixes that.
Written lesson
summary-only and the components
aggregate-address 10.0.0.0 255.0.0.0 advertises the /8 but, by default, keeps advertising the more specific components too. Add summary-only and the components are suppressed, so only the aggregate leaves — the point of aggregating. The aggregate needs at least one component in the BGP table to be generated; it does not conjure a route from nothing.
Configuration
Aggregate with as-set and summary-only
router bgp 65001
address-family ipv4 unicast
aggregate-address 10.0.0.0 255.0.0.0 as-set summary-onlyas-set and flap
With as-set, the aggregate's AS_PATH changes whenever the set of contributing components changes — so a flapping component can flap the aggregate's attributes. It is the trade-off for correct loop prevention; weigh it in unstable edges.
Aggregation checklist
- A component must exist in the BGP table for the aggregate to appear.
- `summary-only` is what actually shrinks the table.
- `as-set` preserves path history and loop prevention.
- ATOMIC_AGGREGATE marks a route whose detail was lost to aggregation.