Route Summarization & Aggregation
1. What Is Route Summarization?
Route summarization (also called route aggregation or supernetting) is the process of combining multiple contiguous, specific routes into a single summary route that is then advertised in place of the individual entries. Instead of advertising four /24 networks separately, a router can advertise one /22 that covers all four — reducing the information that neighbouring routers and the entire routing domain must process and store.
Summarization is possible because IP addressing is hierarchical. When subnets share a common high-order bit pattern, a single shorter prefix can represent the entire group. The router performing summarization suppresses the specific routes and advertises only the aggregate — any destination that falls within the summary is reachable via that single entry.
| Without Summarization | With Summarization |
|---|---|
| 192.168.0.0/24 via 10.0.0.1 |
192.168.0.0/22 via 10.0.0.1 (one entry replaces four) |
| 192.168.1.0/24 via 10.0.0.1 | |
| 192.168.2.0/24 via 10.0.0.1 | |
| 192.168.3.0/24 via 10.0.0.1 |
Related pages: Wildcard Masks & CIDR | OSPF Overview | EIGRP Overview | EIGRP Configuration | Default Routes | Administrative Distance | Route Summarization Lab
2. Benefits of Route Summarization
| Benefit | Explanation |
|---|---|
| Smaller routing tables | Routers store and process fewer entries, reducing memory consumption and speeding up longest-prefix-match lookups |
| Reduced routing protocol traffic | Fewer routes are advertised across the network — link-state databases (OSPF) and update packets (EIGRP, RIP) are smaller, consuming less bandwidth |
| Topology change isolation | When a specific subnet within a summary flaps, the summary route itself does not change — remote routers do not trigger a recalculation (SPF in OSPF, DUAL in EIGRP) for a change they cannot see |
| Faster convergence | Smaller link-state databases and distance-vector tables converge faster after a topology change; SPF calculations are less CPU-intensive |
| Scalability | Hierarchical addressing with summarization at area or AS boundaries allows networks to grow without routing table explosion |
| Cleaner design | Forces IP address planning to be hierarchical and contiguous — a network that can be summarised is a network that was designed well |
3. How to Calculate a Summary Address – Step by Step
The process of finding the correct summary address and prefix length requires converting the network addresses to binary, identifying the common bit prefix, and reading the summary network address and mask from that prefix.
3.1 The Four-Step Method
Step 1: Write all network addresses to be summarised in binary
Step 2: Align the binary values and find the leftmost bit where they DIFFER
Step 3: Count the number of bits that are IDENTICAL from left to right
— this count is the summary prefix length (the new subnet mask)
Step 4: Copy the common bits; set all remaining bits to 0
— the result is the summary network address
3.2 Worked Example 1 — Four Contiguous /24 Networks
Networks to summarise:
192.168.0.0 /24
192.168.1.0 /24
192.168.2.0 /24
192.168.3.0 /24
Step 1 — Convert third octet to binary (first two octets are identical):
192.168. 0 .0 → 0 0 0 0 0 0 0 0
192.168. 1 .0 → 0 0 0 0 0 0 0 1
192.168. 2 .0 → 0 0 0 0 0 0 1 0
192.168. 3 .0 → 0 0 0 0 0 0 1 1
─────────────────
Step 2 — First differing bit is at position 7 from the left (bit 7 of octet 3)
Step 3 — Matching bits: 16 (first two octets) + 6 (first 6 bits of third octet) = 22
Summary prefix = /22
Step 4 — Set differing bits to 0:
Third octet common bits: 0 0 0 0 0 0 → decimal 0
Summary address: 192.168.0.0 /22
Verification — /22 covers:
Network: 192.168.0.0
Broadcast: 192.168.3.255
Range: 192.168.0.0 – 192.168.3.255 ✓ (all four /24s fit inside)
3.3 Worked Example 2 — Eight Contiguous /24 Networks
Networks to summarise:
10.0.0.0 /24 through 10.0.7.0 /24 (8 networks)
Third octet values: 0, 1, 2, 3, 4, 5, 6, 7
Binary (third octet only):
0 → 0 0 0 0 0 0 0 0
1 → 0 0 0 0 0 0 0 1
2 → 0 0 0 0 0 0 1 0
3 → 0 0 0 0 0 0 1 1
4 → 0 0 0 0 0 1 0 0
5 → 0 0 0 0 0 1 0 1
6 → 0 0 0 0 0 1 1 0
7 → 0 0 0 0 0 1 1 1
──────────────────
First differing bit: position 6 from the left (bit 6 of octet 3)
Matching bits: 16 (first two octets) + 5 (first 5 bits of third octet) = 21
Summary prefix = /21
Set differing bits to 0 → third octet = 0 0 0 0 0 0 0 0 = 0
Summary address: 10.0.0.0 /21
Verification — /21 covers:
Network: 10.0.0.0
Broadcast: 10.0.7.255
Range: 10.0.0.0 – 10.0.7.255 ✓ (all eight /24s fit)
3.4 Worked Example 3 — Non-Power-of-Two Count (Partial Overlap Warning)
Networks to summarise:
172.16.0.0 /24
172.16.1.0 /24
172.16.2.0 /24 (only 3 networks — not a power of two)
Binary (third octet):
0 → 0 0 0 0 0 0 0 0
1 → 0 0 0 0 0 0 0 1
2 → 0 0 0 0 0 0 1 0
──────────────────
First differing bit: position 7 from left
Matching bits: 16 + 6 = 22 → Summary = 172.16.0.0 /22
⚠ WARNING — The /22 summary covers:
172.16.0.0 – 172.16.3.255
But 172.16.3.0/24 does NOT exist in our network!
If 172.16.3.0/24 is reachable via a DIFFERENT path in the network,
advertising 172.16.0.0/22 here creates a routing black hole for that subnet.
Solution: Either extend the address block to include 172.16.3.0/24,
or summarise only 172.16.0.0/23 (covering .0 and .1) and advertise
172.16.2.0/24 separately.
3.5 Quick Reference — Block Sizes and Summary Prefixes
| Number of /24s to Summarise | Prefix Bits Borrowed | Summary Prefix Length | Example |
|---|---|---|---|
| 2 | 1 | /23 | 10.0.0.0/24 + 10.0.1.0/24 → 10.0.0.0/23 |
| 4 | 2 | /22 | 10.0.0.0–10.0.3.0/24 → 10.0.0.0/22 |
| 8 | 3 | /21 | 10.0.0.0–10.0.7.0/24 → 10.0.0.0/21 |
| 16 | 4 | /20 | 10.0.0.0–10.0.15.0/24 → 10.0.0.0/20 |
| 32 | 5 | /19 | 10.0.0.0–10.0.31.0/24 → 10.0.0.0/19 |
| 256 | 8 | /16 | 10.0.0.0–10.0.255.0/24 → 10.0.0.0/16 |
4. The Discard Route (Null0)
When a router generates a summary route, it automatically installs a corresponding
discard route (also called a null route) pointing to the
Null0 interface for the summary prefix. This is a critical safety mechanism.
4.1 Why the Discard Route Exists
Scenario — without a discard route:
Router-A summarises 192.168.0.0/22 and advertises it to Router-B.
A packet arrives at Router-A destined for 192.168.3.50.
Router-A's routing table has: 192.168.0.0/22 → summary (local)
But 192.168.3.0/24 does NOT exist — no specific route to it.
Without discard route:
Router-A looks up 192.168.3.50 → matches 192.168.0.0/22 (the summary)
→ forwards to itself → looks up again → matches summary → loop!
Result: routing loop and TTL expiry (count-to-infinity for the packet)
With the Null0 discard route:
Router-A has: 192.168.0.0/22 via Null0 (automatically installed)
Packet for 192.168.3.50 matches 192.168.0.0/22 → forwarded to Null0
→ packet silently dropped (ICMP "Destination Unreachable" sent to source)
Result: loop prevented — clean discard
4.2 Discard Route in the Routing Table
Router-A# show ip route ... O 192.168.0.0/22 is a summary, 00:05:23, Null0 ← discard route O 192.168.0.0/24 [110/2] via 10.1.1.2 O 192.168.1.0/24 [110/2] via 10.1.1.2 O 192.168.2.0/24 [110/2] via 10.1.1.2 ... The summary via Null0 is always installed with a higher administrative distance than the specific routes. When a specific route exists, it wins (longest prefix match). The Null0 route only catches packets for the "gap" addresses in the range.
5. Where to Apply Summarization
Summarization is most effective when applied at boundaries — points in the network where traffic transitions between areas, autonomous systems, or administrative domains. Applying it too early (deep inside an area) can hide topology detail needed for optimal routing; applying it at the boundary keeps specific detail local while presenting a clean summary to the rest of the network.
Optimal Summarization Points: ┌──────────────────────────────────────────────────────────────────┐ │ OSPF Multi-Area Network │ │ │ │ Area 1 Area 0 (Backbone) Area 2 │ │ 10.1.0.0/24 ─┐ ┌─ 10.2.0.0/24 │ │ 10.1.1.0/24 ─┤ ├─ 10.2.1.0/24 │ │ 10.1.2.0/24 ─┤ [ABR]────────[ABR] ├─ 10.2.2.0/24 │ │ 10.1.3.0/24 ─┘ ↑ ↑ └─ 10.2.3.0/24 │ │ │ │ │ │ Summarise here Summarise here │ │ 10.1.0.0/22 10.2.0.0/22 │ │ advertised advertised │ │ into Area 0 into Area 0 │ └──────────────────────────────────────────────────────────────────┘ EIGRP Autonomous System: ┌──────────────────────────────────────────────────────────────────┐ │ Distribution Router │ │ (summarises access-layer subnets before advertising to core) │ │ │ │ Access layer: 192.168.0.0/24, .1.0/24, .2.0/24, .3.0/24 │ │ Summary sent: 192.168.0.0/22 ─────→ Core routers │ └──────────────────────────────────────────────────────────────────┘
6. Summarization in OSPF
In OSPF, summarization can only be performed at specific router roles — it cannot be done on internal routers within an area. The two points where OSPF summarization is configured are the Area Border Router (ABR) for inter-area summarization, and the Autonomous System Boundary Router (ASBR) for external route summarization.
6.1 Inter-Area Summarization — ABR
The area range command is configured on the ABR to summarise specific
routes from a non-backbone area before advertising them into Area 0 (or between areas).
! ── OSPF Inter-Area Summarization on ABR ── ! Scenario: ABR connects Area 1 (10.1.0.0/24 through 10.1.3.0/24) to Area 0 Router(config)# router ospf 1 Router(config-router)# area 1 range 10.1.0.0 255.255.252.0 ! ↑ ↑ ↑ ! Area Summary IP Summary Mask (/22) ! Result: Instead of advertising four /24 LSAs into Area 0, the ABR ! advertises a single Type 3 Summary LSA: 10.1.0.0/22 ! Optional — suppress the summary (advertise nothing, just drop the specifics): Router(config-router)# area 1 range 10.1.0.0 255.255.252.0 not-advertise ! Optional — set a specific cost for the summary LSA: Router(config-router)# area 1 range 10.1.0.0 255.255.252.0 cost 50 Verify: Router# show ip ospf border-routers Router# show ip route ospf Router# show ip ospf database summary
6.2 External Route Summarization — ASBR
When OSPF redistributes routes from another routing protocol (e.g., EIGRP or static),
the ASBR can summarise those external routes using summary-address before
they are flooded as Type 5 (or Type 7) External LSAs across the OSPF domain.
! ── OSPF External Summarization on ASBR ── Router(config)# router ospf 1 Router(config-router)# summary-address 172.16.0.0 255.255.240.0 ! Summarises all redistributed external routes within 172.16.0.0/20 ! This is used alongside redistribution: Router(config-router)# redistribute eigrp 100 subnets
6.3 OSPF Summarization — Key Rules
| Rule | Detail |
|---|---|
| Only on ABR or ASBR | Internal OSPF routers cannot summarise — only routers that sit on an area boundary |
area range — inter-area |
Summarises Type 1/2 LSAs from a specific area into a Type 3 Summary LSA advertised to other areas |
summary-address — external |
Summarises Type 5 External LSAs generated by redistribution at the ASBR |
| Discard route installed | A route to Null0 for the summary prefix is automatically added to the ABR/ASBR routing table |
| Specific routes remain locally | The specific /24 routes still exist within their own area — summarization only affects what is advertised outside |
7. Summarization in EIGRP
EIGRP supports summarization in two forms: manual summarization configured on any interface, and automatic summarization (legacy, classful behaviour). Manual summarization is the preferred and exam-tested method.
7.1 EIGRP Manual Summarization
EIGRP manual summarization is applied per interface using the
ip summary-address eigrp command. When configured, the router suppresses
the specific routes out that interface and advertises only the summary. The discard
route to Null0 is automatically installed.
! ── EIGRP Manual Summarization ── ! Scenario: Distribution router advertising 192.168.0.0/24 – 192.168.3.0/24 ! out its Gi0/0 interface toward the core Router(config)# interface GigabitEthernet0/0 Router(config-if)# ip summary-address eigrp 100 192.168.0.0 255.255.252.0 ! ↑ ↑ ↑ ! AS number Summary IP Summary Mask ! Result: ! - Specific routes .0/24, .1/24, .2/24, .3/24 suppressed out Gi0/0 ! - Single summary 192.168.0.0/22 advertised out Gi0/0 ! - Null0 discard route added locally for 192.168.0.0/22 Verify: Router# show ip eigrp topology Router# show ip route eigrp Router# show ip interface GigabitEthernet0/0
7.2 EIGRP Auto-Summary (Legacy — Default Off in Modern IOS)
EIGRP historically performed automatic summarization at classful network boundaries — a behaviour that caused serious routing problems in discontiguous networks. In IOS 15.x and later, auto-summary is disabled by default. It is important to understand it for the exam, but manual summarization is always preferred.
! ── Auto-Summary (legacy — understand for exam, disable in production) ── ! Check current state: Router# show ip protocols ! Look for: "Automatic Summarization: disabled" (good) or "enabled" (risky) ! Disable auto-summary explicitly (best practice): Router(config)# router eigrp 100 Router(config-router)# no auto-summary ! What auto-summary does when enabled: ! If a router has 10.1.0.0/24 and 10.1.1.0/24, and the interface ! toward the core crosses a classful boundary (e.g., from Class A to Class B), ! auto-summary advertises 10.0.0.0/8 (the Class A summary) — hiding ! the specific subnets and causing black holes in discontiguous designs. ! Manual summary is always more precise and predictable.
7.3 EIGRP vs OSPF Summarization — Key Differences
| Aspect | EIGRP | OSPF |
|---|---|---|
| Where configured | On any interface (per-interface command) | Under the OSPF process on ABR (area range) or ASBR (summary-address) |
| Which routers can summarise | Any EIGRP router | Only ABR (inter-area) or ASBR (external) |
| Command syntax | ip summary-address eigrp <AS> <network> <mask> |
area <id> range <network> <mask> |
| Auto-summary | Exists (legacy, disabled by default in IOS 15+) | No equivalent — OSPF is classless by design |
| Discard route | Null0 route installed automatically | Null0 route installed automatically |
| Scope of suppression | Specific routes suppressed out the configured interface only | Specific LSAs suppressed from being flooded outside the area |
8. Summarization Pitfalls and Best Practices
| Pitfall | What Goes Wrong | How to Avoid It |
|---|---|---|
| Summary covers unused address space | Packets for non-existent subnets within the summary are dropped at the summarising router (Null0) — black hole for valid destinations elsewhere | Plan address space so the entire summary block is in use, or advertise the unused portion separately via a more specific route if needed |
| Discontiguous networks with auto-summary | EIGRP auto-summary advertises a classful summary at major network boundaries, hiding specific subnets and causing routing asymmetry or loops | Always disable auto-summary with no auto-summary in EIGRP;
use manual summarization only |
| Over-summarization | A summary that is too broad (e.g., /16 instead of /22) hides too much topology detail and can mask routing problems | Summarise at the most specific level that achieves the desired reduction without covering unrelated address space |
| Summarizing at the wrong point | Summarising inside an OSPF area (on an internal router) is not possible; attempting it has no effect | In OSPF, summarization must be on the ABR or ASBR — verify router role
with show ip ospf |
| Forgetting the discard route implication | If the Null0 discard route has a lower AD than a default route, traffic to unknown destinations in the summary is dropped rather than forwarded to the default gateway | Be aware of the AD of the discard route; use
ip route 0.0.0.0 0.0.0.0 with a lower AD than the discard
route where needed |
See also: Route Summarization & Aggregation Lab | OSPF Multi-Area Lab | EIGRP Configuration Lab | Default Route Redistribution in OSPF | show ip route | show ip protocols
9. Key Terms Quick Reference
| Term | Definition |
|---|---|
| Route Summarization | Combining multiple specific routes into a single aggregate route advertised in their place; reduces routing table size and protocol overhead |
| Supernetting | Another name for route summarization/aggregation — using a shorter prefix to represent a block of more-specific networks |
| Summary Address | The aggregate network address and prefix length that represents all the specific subnets being summarised |
| Contiguous Subnets | Subnets that are numerically adjacent and share a common bit prefix — the prerequisite for clean summarization |
| Discard Route (Null0) | A route automatically installed by the summarising router for the summary prefix, pointing to Null0 — prevents routing loops for destinations within the summary that have no specific route |
| ABR (Area Border Router) | An OSPF router connected to two or more areas; the only router that can perform inter-area route summarization using area range |
| ASBR (Autonomous System Boundary Router) | An OSPF router that redistributes routes from outside the OSPF domain; can summarise external routes using summary-address |
| area range | The OSPF ABR command to summarise routes from a specific area before advertising them to other areas |
| ip summary-address eigrp | The EIGRP per-interface command to advertise a summary route and suppress more-specific routes out that interface |
| Auto-Summary | Legacy EIGRP behaviour that automatically summarises to classful boundaries; disabled by default in IOS 15.x and later; can cause black holes in discontiguous designs |
| Black Hole | A routing condition where packets are dropped because a summary covers address space for which no specific route exists at the summarising router |