Use it when one exact route, peer or policy behaves differently from design and you need to identify the first BGP/routing-policy boundary that disagrees.
BGP Aggregation & Multipath Deep Reference
BGP aggregation advertises one summary prefix instead of many component routes (aggregate-address, optionally summary-only). BGP multipath installs several equal paths in the routing table (maximum-paths) instead of only the single best path.
1. Aggregation summarises with aggregate-address; summary-only suppresses specifics; as-set keeps path info.
2. Multipath installs equal paths (maximum-paths, ibgp).
3. Paths must match on weight, LP, AS path length, origin, MED, IGP metric.
4. eBGP multipath needs the same neighbour AS unless relaxed.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
maximum-paths <count>Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification and known-good state Verify boundary
show ip bgp 10.20.0.0/16
show ip bgp 10.20.0.0/16 longer-prefixes
show ip route 10.20.0.0 255.255.0.0
show ip bgp 203.0.113.0/24
show ip route 203.0.113.0
For aggregation: the summary appears in BGP as locally originated, with atomic-aggregate; longer-prefixes lists the contributing routes, marked s when suppressed; the routing table shows the summary to Null0. For multipath: the prefix detail marks the extra paths multipath beside the best one, and the routing table lists several next hops.
Known-good: the summary exists with at least one contributor and is received by the neighbour; or, for multipath, two paths are flagged and two next hops are installed.
Step 2 Failure signatures and troubleshooting branches Narrow the fault
- The summary is not created. No more-specific route within it is in the BGP table — being in the routing table alone is not enough.
- The neighbour still receives all the specific routes.
summary-onlyis missing. - Traffic to part of the summary is dropped. That part has no specific route, and the Null0 route does its job; the summary promises more than is reachable.
- The summary flaps.
as-setis in use and the contributors change, or there is a single unstable contributor. maximum-pathsis set but only one path is installed. The paths differ in an attribute, come from different ASes, are of different types, or — for iBGP — have unequal IGP cost.- Two paths are installed but neighbours still hear one. BGP advertises only the best path; that is expected.
Step 3 When the problem is really fixed Narrow the fault
- The summary is in BGP, received by the neighbour, and the specific routes are suppressed if that was intended.
- Every part of the summary that is advertised is reachable.
- For multipath, the paths are flagged
multipathand all next hops are in the routing table. - Traffic is seen on all the links.
Do not equate a configured policy, Established BGP session, visible attribute or installed route with end-to-end success. Prove each boundary in order.
show bgp ipv4 unicast <aggregate>— aggregate and atomic-aggregateshow bgp ipv4 unicast <prefix> bestpath— multipath flagsshow running-config | section router bgp— maximum-paths
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
Two separate BGP features. Aggregation advertises one summary prefix in place of many specific ones. Multipath lets the router install more than one BGP path for a prefix and share traffic between them, where BGP would otherwise use only the single best path.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
Aggregation keeps routing tables small and hides instability, but it also hides which parts of the summary are actually reachable. Multipath uses links that would otherwise sit idle, but only for paths that BGP considers equal — and the conditions for "equal" are stricter than most expect.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Aggregation attributes and multipath in practice
When BGP summarises routes, RFC 4271 defines how the summary should describe the paths it replaces. If the aggregate leaves out AS numbers that appeared in the original AS_PATHs, it should carry the ATOMIC_AGGREGATE attribute (type 6, length 0), which warns that path information has been lost. The AGGREGATOR attribute (type 7, optional transitive) records the AS and router that created the aggregate. An aggregate can instead keep the original ASes as an AS_SET, an unordered set of the ASes the contributing routes passed through.
Aggregation options on Cisco IOS XE
| Command | Result |
|---|---|
aggregate-address 10.20.0.0 255.255.0.0 | The summary is added; specifics are still advertised |
... summary-only | Only the summary is advertised |
... as-set | The summary carries an AS_SET of the contributing ASes (no ATOMIC_AGGREGATE needed) |
... suppress-map / unsuppress-map | Advertise selected specifics as well |
network 10.20.0.0 mask 255.255.0.0 plus a Null0 route | A static summary, independent of the specifics |
Multipath
Multipath is outside RFC 4271's single-best-path model. It is an implementation feature that installs several equal paths in the forwarding table. BGP still advertises only one best path to its peers, unless add-path is used.
| Command | Paths eligible |
|---|---|
maximum-paths 4 | eBGP paths from the same neighbouring AS, equal up to the IGP-metric step |
maximum-paths ibgp 4 | iBGP paths that are otherwise equal |
bgp bestpath as-path multipath-relax | eBGP paths from different ASes with the same AS_PATH length |
R1(config)# router bgp 65010
R1(config-router)# address-family ipv4 unicast
R1(config-router-af)# aggregate-address 10.20.0.0 255.255.0.0 summary-only as-set
R1(config-router-af)# maximum-paths 2
R1# show bgp ipv4 unicast 10.20.0.0/16 | include aggregated|atomic|best
R1# show bgp ipv4 unicast 198.51.100.0/24 | include multipath|best
R1# show ip route 198.51.100.0 | include via
Design notes
| Point | Reason |
|---|---|
| A summary hides specific outages | Traffic may be attracted to a site where the specific is down |
as-set changes the AS_PATH when specifics change | That can cause updates and dampening |
| Multipath needs equal attributes up to the tie-breaking steps | Check show bgp for why a path is not multipath |
Documented example, not captured output.
Mechanics and state ownership
Aggregation. aggregate-address 10.20.0.0 255.255.0.0 creates the summary in BGP, provided at least one more-specific route within it is in the BGP table. When the last one disappears, so does the summary. By default the specific routes are still advertised alongside it; summary-only suppresses them. The router also installs a route for the summary to Null0, so that traffic to a part of the summary with no specific route is dropped instead of following a default route back out — a loop prevention measure.
The summary is originated by the aggregating router, so the AS path of the specific routes is lost. It is marked with the ATOMIC_AGGREGATE attribute to say so. as-set keeps the AS numbers as an unordered set, which preserves loop prevention at the cost of the summary changing whenever a contributor changes.
Multipath. BGP always selects one best path and advertises only that one. With maximum-paths <n> (eBGP) or maximum-paths ibgp <n>, additional paths are installed in the routing table as well if they tie with the best path on everything that matters: weight, LOCAL_PREF, AS path length, origin and MED, and they are the same type (all eBGP or all iBGP). For eBGP the paths must by default come from the same neighbouring AS; bgp bestpath as-path multipath-relax allows different ASes with equal path length. For iBGP the IGP cost to each next hop must also be equal.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → BGP Aggregation & Multipath Deep Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc4271.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
BGP Aggregation & Multipath Deep Reference operational reference
Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.
| Boundary | Known-good for BGP Aggregation & Multipath Deep Reference | Suspicious signature | Next proof |
|---|---|---|---|
| Input/session | Correct peer, source, AF and route context | Session/source/input state disagrees | Exact peer/source/prefix detail |
| Policy/protocol | the separate control-plane problems of BGP route aggregation and multipath installation: component-route eligibility, summary generation/suppression, aggregate attributes, multiple-path eligibility, maximum-path settings and actual RIB/FIB programming matches intended design | an aggregate is absent because required component reachability is missing, summary-only suppresses more specifics unexpectedly, aggregate attributes differ from policy intent, candidate paths fail multipath eligibility, maximum-path settings are absent, or multiple RIB/CEF paths exist but a single flow hashes to one member and is misread as failed load balancing | Compare policy/attributes/propagation |
| Route/forwarding | Expected result reaches RIB/FIB | Control-plane state exists but installed path disagrees | RIB/FIB/CEF + next-hop proof |
| Closure | Original workload passes for explained reason | Symptom moved, was bypassed or state was forced | Regression/failover test |
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.