BGP route aggregation: aggregate-address, summary-only, AS_SET and suppress maps
In short: BGP aggregation replaces many specific prefixes with one shorter prefix in your advertisements. The aggregate-address command creates the summary when at least one component route exists, summary-only hides the components, as-set preserves loop-prevention information, and suppress or unsuppress maps let you leak chosen specifics.
Two ways to summarise in BGP
You can announce a summary with a network statement plus a static route to Null0, which is simple and always stays up. Or you can use aggregate-address, which only appears while at least one more specific route is in the BGP table. That makes it useful inside a network, where you want the summary to disappear if the whole block is gone.
The basic command
router bgp 64500
address-family ipv4
network 10.10.0.0 mask 255.255.255.0
network 10.10.1.0 mask 255.255.255.0
aggregate-address 10.10.0.0 255.255.252.0
On its own, this advertises both the /22 summary and the /24 components. Neighbours can still use the specifics, which is rarely what you want.
summary-only
aggregate-address 10.10.0.0 255.255.252.0 summary-only marks the components as suppressed (shown with an s in show ip bgp), so only the summary leaves the router. BGP also installs a Null0 route for the aggregate locally to avoid loops for unused addresses inside it.
AS_SET and ATOMIC_AGGREGATE
When the components came from different autonomous systems, the summary normally has an empty AS path from this router, losing information that BGP uses to prevent loops. The router sets the ATOMIC_AGGREGATE attribute to warn others that information was lost. Adding as-set includes the component AS numbers as an unordered set instead. Be aware that RFC 9774 now deprecates AS_SET for new deployments, and RPKI route origin validation cannot validate routes with AS_SET, so many operators avoid it on the public internet.
Leaking specific routes
- suppress-map: suppress only the components matched by a route map, and still advertise the others.
- unsuppress-map: applied per neighbour, it lets that one neighbour receive certain specifics that are otherwise suppressed, for example for traffic engineering with one provider.
- advertise-map: chooses which components are used to build the aggregate's attributes.
ip prefix-list LAB permit 10.10.3.0/24
route-map LEAK-LAB permit 10
match ip address prefix-list LAB
router bgp 64500
address-family ipv4
aggregate-address 10.10.0.0 255.255.252.0 summary-only
neighbor 192.0.2.9 unsuppress-map LEAK-LAB
Checking it
show ip bgp 10.10.0.0/22 shows the aggregate, its attributes and the "aggregated by" router. show ip bgp neighbors 192.0.2.9 advertised-routes confirms exactly what the neighbour receives.
Real-world example: a smaller table for the branches
A retailer advertised over 600 store /24s from its data centre to a partner network. Every store opening or closure caused BGP updates at the partner. Using one aggregate-address ... summary-only per region cut the advertised routes to eight, and the partner's routing table stopped changing every time a store link flapped.
Practice
When does a BGP aggregate created with aggregate-address appear?
What does summary-only do?
Which feature lets one neighbour receive specific routes that are otherwise suppressed?
Key takeaways
- aggregate-address creates a summary while any component route exists.
- Without summary-only, the specifics are still advertised.
- AS_SET keeps loop information but is deprecated for new public use.
- suppress-map and unsuppress-map leak or hide chosen specifics.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.