Route Summarization & Aggregation — OSPF and EIGRP Summary Address Configuration
Every router in a network maintains a routing table — a list of destinations and next-hops. As networks grow, routing tables grow with them. A large enterprise may have hundreds of individual subnets across dozens of sites. Without summarization, every router in the network must store, process, and react to every individual prefix. When a host subnet goes down in a remote site, every router in the OSPF or EIGRP domain runs the SPF algorithm or diffusing computation to recalculate routes — burning CPU, consuming memory, and generating unnecessary topology churn across the entire network.
Route summarization (also called route aggregation or supernetting) solves this by replacing multiple specific prefixes with a single summary prefix that covers the same address space. Instead of advertising ten /24 subnets from a branch site, the ABR advertises a single /20 summary. The rest of the network stores one route instead of ten. When any individual /24 flaps, the summary remains stable — no SPF re-run, no routing table churn in the core. The performance benefits compound at scale: a network with 500 subnets reduced to 50 summaries experiences 10x fewer routing table lookups, 10x less memory consumption, and dramatically reduced convergence events.
This lab covers the complete summarization workflow: binary
summary address calculation (the skill that underpins all
summarization work), OSPF ABR and ASBR summarization using
area range and summary-address,
EIGRP interface-level summarization using
ip summary-address, and full verification.
For the OSPF and EIGRP protocols these summaries build on
see OSPF Single-Area
Configuration,
OSPF Multi-Area
Configuration, and
EIGRP
Configuration. For filtering routes rather than
summarizing them see
Policy-Based Routing
and BGP Basics (eBGP)
which uses a different aggregation model.
1. Core Concepts — Why Summarize and How It Works
Benefits and Trade-offs of Route Summarization
| Benefit | Explanation |
|---|---|
| Smaller routing tables | One summary prefix replaces N specific prefixes. Lookup is faster; memory consumption is lower. |
| Topology change isolation | When a specific subnet within the summary flaps, the summary itself stays stable. SPF/DUAL is only triggered in the local area — not domain-wide. |
| Reduced SPF/DUAL computation | Fewer LSAs/topology table entries means faster convergence and lower CPU during topology changes. |
| Bandwidth conservation | Fewer routing protocol advertisements — especially beneficial on slow WAN links. |
| Simplified troubleshooting | Fewer routes to analyse during outages. Clear hierarchical structure. |
| Trade-off / Risk | Explanation |
|---|---|
| Summary covers supernet space | A summary like 10.1.0.0/20 covers 10.1.0.0–10.1.15.255. If only 10.1.0.0–10.1.9.255 is in use, the summary advertises reachability to 10.1.10.0–10.1.15.255 as well — traffic to unused addresses may be blackholed. |
| Null0 route (black hole) | OSPF and EIGRP automatically install a Null0 route for the summary prefix to prevent routing loops. Traffic to addresses inside the summary but not in any specific subnet is dropped at Null0. |
| Requires contiguous addressing | Summarization only works when subnets are contiguous and share a common bit prefix. Discontiguous address space cannot be cleanly summarized without covering gaps. |
| Loss of specific path visibility | Downstream routers only see the summary — they cannot make routing decisions based on individual subnets within the summary. All traffic to the summarized range uses the same path. |
The Null0 Black Hole Route
When a router summarizes routes and advertises a summary prefix,
IOS automatically installs a Null0 (discard) route for that prefix
in the local routing table. This prevents routing loops:
WITHOUT Null0:
Summary 10.1.0.0/20 advertised to core.
Packet arrives for 10.1.14.5 (not a real subnet).
No specific /24 route exists locally.
Router looks for a less-specific match — finds default route.
Default route points back to core (which sent the packet here).
Packet loops between core and summarizing router indefinitely. ← LOOP
WITH Null0 (automatic):
Summary 10.1.0.0/20 advertised to core.
Packet arrives for 10.1.14.5 (not a real subnet).
No specific /24 route exists locally.
Null0 route for 10.1.0.0/20 is the next-best match.
Packet is silently discarded (dropped). ← No loop, no forwarding
This Null0 route appears in the routing table as:
O 10.1.0.0/20 is a summary, 00:01:23, Null0 (OSPF)
D 10.1.0.0/20 is a summary, 00:01:23, Null0 (EIGRP)
Where Summarization Can Be Configured
| Protocol | Router Role | IOS Command | What Is Summarized |
|---|---|---|---|
| OSPF | ABR (Area Border Router) | area [id] range [prefix] [mask] |
Inter-area summary — summarizes routes from one area advertised into another area (Type 3 LSA) |
| OSPF | ASBR (AS Boundary Router) | summary-address [prefix] [mask] |
External summary — summarizes redistributed external routes (Type 5/Type 7 LSA) |
| EIGRP | Any router | ip summary-address eigrp [asn] [prefix] [mask] |
Summarizes all EIGRP routes behind this interface — sent to neighbors on that interface only |
| Static | Any router | ip route [summary] [mask] [next-hop] |
Manual summary — a static route covering a range, redistributed or used as default. See Static Route Configuration |
| BGP | Any BGP router | aggregate-address [prefix] [mask] |
BGP aggregate — summarizes BGP prefixes in the BGP table. Used extensively in service provider networks alongside MPLS (covered separately) |
area range on an internal router that is
not an ABR — IOS will accept the command but it has
no effect. Always verify the router's OSPF role with
show ip ospf before configuring
area range.
2. Summary Address Calculation — Binary Method
Correct summary address calculation is the most critical skill in route summarization. An incorrect summary address either fails to cover all subnets (traffic leaks around the summary) or covers too much address space (creating black holes for unused addresses). The binary method is the only reliable approach for all cases. A firm grasp of subnet masks is essential before working through these calculations.
Step-by-Step Method
RULE: The summary address is formed by the COMMON BIT PREFIX
shared by ALL networks being summarized.
STEP 1: Write all network addresses in binary (focus on the octets that differ)
STEP 2: Align the bits column by column from left to right
STEP 3: Find the last bit position where ALL networks have the SAME value
STEP 4: Everything to the left of that position = summary network bits
STEP 5: Everything to the right = host bits (set to 0 for the network address)
STEP 6: Count the matching bit positions = prefix length (subnet mask)
Example 1 — Four /24 Networks into a Single Summary
Networks to summarize:
10.1.0.0/24
10.1.1.0/24
10.1.2.0/24
10.1.3.0/24
STEP 1-2: Write the third octet in binary (first three octets are identical):
10.1. [0] .0 → 0 0 0 0 0 0 0 0
10.1. [1] .0 → 0 0 0 0 0 0 0 1
10.1. [2] .0 → 0 0 0 0 0 0 1 0
10.1. [3] .0 → 0 0 0 0 0 0 1 1
─────────────────
↑ ↑ ↑ ↑ ↑ ↑ ↕ ↕
STEP 3: All same up to bit 6 ← last matching bit position
STEP 4-5: Summary network = common prefix + remaining bits set to 0
Common bits: 0 0 0 0 0 0 _ _ → 0 0 0 0 0 0 0 0 = 0 (third octet)
Summary address: 10.1.0.0
STEP 6: Count matching bit positions
First octet: 8 bits match (all 10s)
Second octet: 8 bits match (all 1s)
Third octet: 6 bits match (0 0 0 0 0 0)
Fourth octet: 0 bits (don't count fourth octet — it's all host bits)
Total: 8 + 8 + 6 = /22
✓ SUMMARY: 10.1.0.0/22
Covers: 10.1.0.0 → 10.1.3.255 (1024 addresses, 4 × /24 networks)
Example 2 — Non-Consecutive Third Octet Values
Networks to summarize:
172.16.64.0/24
172.16.65.0/24
172.16.66.0/24
172.16.67.0/24
172.16.68.0/24
172.16.69.0/24
172.16.70.0/24
172.16.71.0/24
STEP 1-2: Third octet in binary:
172.16. [64] .0 → 0 1 0 0 0 0 0 0
172.16. [65] .0 → 0 1 0 0 0 0 0 1
172.16. [66] .0 → 0 1 0 0 0 0 1 0
172.16. [67] .0 → 0 1 0 0 0 0 1 1
172.16. [68] .0 → 0 1 0 0 0 1 0 0
172.16. [69] .0 → 0 1 0 0 0 1 0 1
172.16. [70] .0 → 0 1 0 0 0 1 1 0
172.16. [71] .0 → 0 1 0 0 0 1 1 1
─────────────────
↑ ↑ ↑ ↑ ↑ ↕ ↕ ↕
STEP 3: All same up to bit 5 (value = 0 1 0 0 0)
STEP 4-5: Summary
Common bits: 0 1 0 0 0 _ _ _ → 0 1 0 0 0 0 0 0 = 64 (third octet)
Summary address: 172.16.64.0
STEP 6: Prefix length
8 + 8 + 5 = /21
✓ SUMMARY: 172.16.64.0/21
Covers: 172.16.64.0 → 172.16.71.255 (2048 addresses, 8 × /24 networks)
Example 3 — Summarizing Across Octet Boundaries
Networks to summarize (different second AND third octets):
192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
STEP 1-2: Write BOTH second and third octets in binary:
192.168. [0.0] → second: 1010 1000 third: 0000 0000
192.168. [1.0] → second: 1010 1000 third: 0000 0001
192.168. [2.0] → second: 1010 1000 third: 0000 0010
192.168. [3.0] → second: 1010 1000 third: 0000 0011
NOTE: second octet = 168 for all → fully matches (8 bits)
Third octet in binary:
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1
0 0 0 0 0 0 1 0
0 0 0 0 0 0 1 1
─────────────────
↑ ↑ ↑ ↑ ↑ ↑ ↕ ↕
6 bits match in third octet
STEP 6: 8 (first) + 8 (second) + 6 (third) = /22
✓ SUMMARY: 192.168.0.0/22
Covers: 192.168.0.0 → 192.168.3.255
QUICK TRICK — Power of 2 check:
Number of subnets being summarized must be a POWER OF 2:
2 networks → /25 one level up from /26, or /24 up from two /25s
4 networks → move 2 bits left from original prefix
8 networks → move 3 bits left
16 networks → move 4 bits left
Example: 4 × /24 networks → /24 - 2 = /22 ✓
8 × /24 networks → /24 - 3 = /21 ✓
16 × /24 networks → /24 - 4 = /20 ✓
WARNING: This trick ONLY works when the starting networks are
perfectly aligned. Always verify with binary when in doubt.
Verification: Does the Summary Cover All Subnets?
FORMULA TO VERIFY:
Summary network: apply the summary mask to each individual subnet
Result must equal: the summary network address for every subnet
Example: Verify 10.1.0.0/22 covers 10.1.0.0–10.1.3.0
Summary mask /22 = 255.255.252.0 = 1111 1111.1111 1111.1111 1100.0000 0000
10.1.0.0 AND 255.255.252.0 = 10.1.0.0 ✓ matches summary
10.1.1.0 AND 255.255.252.0 = 10.1.0.0 ✓ matches summary
10.1.2.0 AND 255.255.252.0 = 10.1.0.0 ✓ matches summary
10.1.3.0 AND 255.255.252.0 = 10.1.0.0 ✓ matches summary
All four subnets AND the summary mask = the summary address. ✓
The summary is correct.
RANGE CHECK:
10.1.0.0/22 covers 10.1.0.0 → 10.1.3.255
All four /24 networks fall within this range. ✓
3. Lab Topology — Multi-Area OSPF + EIGRP Network
┌──────────────────┐
│ OSPF Area 0 │
│ (Backbone) │
│ NetsTuts_R1 │
│ 10.255.0.1/30 │ ← ABR between Area 0 / Area 1
└───────┬──────────┘
│ 10.255.0.0/30
┌────────────┴─────────────────────────┐
OSPF Area 1 OSPF Area 2
NetsTuts_R2 (ABR) NetsTuts_R3 (ABR)
10.255.0.2 10.255.0.6
┌───────────┐ ┌───────────┐
│ Branch-A │ │ Branch-B │
│ Loopbacks │ │ Loopbacks │
│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│ │10.2.2.0/24│
│10.1.3.0/24│ │10.2.3.0/24│
└─────┬─────┘ └─────┬─────┘
│ │
└──────────── EIGRP AS 100 ─────────────┘
NetsTuts_R4 (EIGRP)
┌──────────────────────┐
│ EIGRP AS 100 │
│ 10.4.0.0/24 │
│ 10.4.1.0/24 │
│ 10.4.2.0/24 │
│ 10.4.3.0/24 │
│ 10.4.4.0/24 │
│ 10.4.5.0/24 │
│ 10.4.6.0/24 │
│ 10.4.7.0/24 │
└──────────────────────┘
SUMMARIZATION TASKS:
Task A: OSPF ABR R2 — summarize Area 1 routes (10.1.0.0–10.1.3.0/24)
into Area 0 as single summary → area 1 range 10.1.0.0 255.255.252.0
Task B: OSPF ABR R3 — summarize Area 2 routes (10.2.0.0–10.2.3.0/24)
into Area 0 as single summary → area 2 range 10.2.0.0 255.255.252.0
Task C: EIGRP R4 — summarize 8 routes (10.4.0.0–10.4.7.0/24)
toward R2/R3 as single summary → ip summary-address eigrp 100 10.4.0.0 255.255.248.0
Task D: OSPF ASBR — summarize redistributed EIGRP routes entering OSPF
→ summary-address 10.4.0.0 255.255.248.0
4. Step 1 — OSPF ABR Summarization (area range)
The area range command is configured on an ABR
(a router that belongs to both Area 0 and another area).
It suppresses individual Type 3 LSAs for subnets within the
range and replaces them with a single Type 3 summary LSA.
The syntax specifies which area's routes are being summarized
and the summary prefix/mask.
Verify Current OSPF State Before Summarization (R2)
! ── Check that R2 is an ABR ──────────────────────────────────────
NetsTuts_R2#show ip ospf
Routing Process "ospf 1" with ID 2.2.2.2
...
It is an area border router ← ✓ R2 is ABR (connected to Area 0 + Area 1)
...
Area 1
Number of interfaces in this area is 4
Area has no authentication
Number of full virtual adjacencies through this area is 0
! ── Verify routes being advertised into Area 0 (before summary) ──
NetsTuts_R1#show ip route ospf
10.0.0.0/8 is variably subnetted
O IA 10.1.0.0/24 [110/2] via 10.255.0.2, 00:15:43, Gi0/0 ← 4 individual /24s
O IA 10.1.1.0/24 [110/2] via 10.255.0.2, 00:15:43, Gi0/0 ← flooding the backbone
O IA 10.1.2.0/24 [110/2] via 10.255.0.2, 00:15:43, Gi0/0
O IA 10.1.3.0/24 [110/2] via 10.255.0.2, 00:15:43, Gi0/0
! ── 4 Type 3 LSAs sent from Area 1 into Area 0 — goal: replace with 1 ──
Configure area range on R2 (ABR between Area 0 and Area 1)
! ── OSPF ABR inter-area summarization ──────────────────────────── NetsTuts_R2(config)#router ospf 1 NetsTuts_R2(config-router)#area 1 range 10.1.0.0 255.255.252.0 ! ^^^^^^ ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ! area cmd summary summary mask ! being address (/22) ! summarized ! ── area 1 range means: "summarize routes FROM area 1 as they are ! advertised into other areas (Area 0 in this case)" ─────────── ! ── Optional: suppress the summary entirely (instead of advertising it) NetsTuts_R2(config-router)#area 1 range 10.1.0.0 255.255.252.0 not-advertise ! ← Use this when you want to prevent area 1 routes from leaking into ! backbone without advertising any alternative. Rare in production. ! ── Optional: set a specific cost for the summary LSA ──────────── NetsTuts_R2(config-router)#area 1 range 10.1.0.0 255.255.252.0 cost 100 ! ← Overrides the automatically calculated cost for the summary ! (default: highest cost among all specific routes in the summary) NetsTuts_R2(config-router)#exit
area [id] range command tells the ABR to
summarize routes from that area as they cross into
the backbone or other areas. The area ID in the command
identifies the source area — not the destination area.
R2 is connected to Area 1 and Area 0. area 1 range
summarizes Area 1 routes advertised into Area 0 (and any
other area R2 is connected to). The OSPF process automatically
installs a Null0 discard route locally for 10.1.0.0/22 to
prevent routing loops.
Configure area range on R3 (ABR between Area 0 and Area 2)
NetsTuts_R3(config)#router ospf 1 NetsTuts_R3(config-router)#area 2 range 10.2.0.0 255.255.252.0 ! ← Summary: 4 × /24 (10.2.0–10.2.3) into one /22 ──────────────── NetsTuts_R3(config-router)#exit
Verify OSPF Area Range on R2
! ── Verify the summary is configured ────────────────────────────
NetsTuts_R2#show ip ospf
Routing Process "ospf 1" with ID 2.2.2.2
...
Area 1
Number of interfaces in this area is 4
Summary Link States (Type 3)
Area range: 10.1.0.0/22 Advertise ← ✓ summary configured + active
...
! ── Verify R1 now sees the summary instead of 4 individual routes
NetsTuts_R1#show ip route ospf
10.0.0.0/8 is variably subnetted
O IA 10.1.0.0/22 [110/2] via 10.255.0.2, 00:00:33, Gi0/0 ← ✓ one summary
O IA 10.2.0.0/22 [110/2] via 10.255.0.6, 00:00:28, Gi0/1 ← ✓ Area 2 summary
! ── 8 individual /24 routes reduced to 2 summary /22 routes ─────
! ── Verify Null0 installed on the summarizing ABR ────────────────
NetsTuts_R2#show ip route 10.1.0.0
Routing entry for 10.1.0.0/22
Known via "ospf 1", distance 110, metric 0
Routing Descriptor Blocks:
* directly connected, via Null0 ← ✓ Null0 black hole route installed
5. Step 2 — OSPF ASBR External Summarization (summary-address)
When external routes are redistributed into OSPF (from EIGRP,
static, or another routing protocol), each redistributed
prefix generates a Type 5 (or Type 7 in NSSA areas) External
LSA. These external LSAs flood throughout the entire OSPF
domain. The summary-address command on the ASBR
suppresses individual external LSAs and replaces them with
a single summarized external LSA — reducing flooding and
routing table size across all OSPF routers.
Scenario: R2 Redistributes EIGRP into OSPF
! ── R2 is both ABR and ASBR — redistributing EIGRP routes ──────── ! ── Without summarization, 8 individual EIGRP routes flood as ───── ! ── 8 Type 5 External LSAs into the OSPF domain ────────────────── ! ── Verify external routes before summarization ────────────────── NetsTuts_R1#show ip route ospf | include OE2 O E2 10.4.0.0/24 [110/20] via 10.255.0.2, Gi0/0 ← 8 individual external routes O E2 10.4.1.0/24 [110/20] via 10.255.0.2, Gi0/0 O E2 10.4.2.0/24 [110/20] via 10.255.0.2, Gi0/0 O E2 10.4.3.0/24 [110/20] via 10.255.0.2, Gi0/0 O E2 10.4.4.0/24 [110/20] via 10.255.0.2, Gi0/0 O E2 10.4.5.0/24 [110/20] via 10.255.0.2, Gi0/0 O E2 10.4.6.0/24 [110/20] via 10.255.0.2, Gi0/0 O E2 10.4.7.0/24 [110/20] via 10.255.0.2, Gi0/0 ! ── Goal: replace with one O E2 10.4.0.0/21 ───────────────────── ! ── Configure ASBR external summarization ──────────────────────── NetsTuts_R2(config)#router ospf 1 NetsTuts_R2(config-router)#redistribute eigrp 100 subnets ! ← First ensure redistribution is configured ───────────────────── NetsTuts_R2(config-router)#summary-address 10.4.0.0 255.255.248.0 ! ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ! command summary mask (/21) ! address ! ── Optional: suppress entirely ───────────────────────────────── NetsTuts_R2(config-router)#summary-address 10.4.0.0 255.255.248.0 not-advertise ! ← Suppresses ALL matching external routes without sending any summary NetsTuts_R2(config-router)#exit
summary-address command (without an
area keyword) applies to external routes being
redistributed into OSPF — it is the ASBR counterpart to
area range. The command must be configured on
the same router that is performing the redistribution.
A Null0 route is automatically installed for the summary
prefix on the ASBR, just as with area range.
Note the syntax difference: area [id] range
uses a prefix and mask, and the area ID is mandatory.
summary-address also uses a prefix and mask
but has no area ID — it applies to all external routes
that fall within the specified range.
Verify ASBR External Summary
! ── Verify external summary on R1 ────────────────────────────────
NetsTuts_R1#show ip route ospf | include OE2
O E2 10.4.0.0/21 [110/20] via 10.255.0.2, 00:00:15, Gi0/0 ← ✓ one summary
! ── Verify LSA database — only one Type 5 LSA for the summary ────
NetsTuts_R1#show ip ospf database external
OSPF Router with ID (1.1.1.1) (Process ID 1)
Type-5 AS External Link States
LS age: 47
Options: (No TOS-capability, DC)
LS Type: AS External Link
Link State ID: 10.4.0.0 (External Network Number)
Advertising Router: 2.2.2.2
LS Seq Number: 80000001
Network Mask: /21 ← ✓ /21 summary in LSA DB
...
! ── Verify Null0 on ASBR ─────────────────────────────────────────
NetsTuts_R2#show ip route 10.4.0.0
Routing entry for 10.4.0.0/21
Known via "ospf 1", distance 110, metric 0, type extern 2
* directly connected, via Null0 ← ✓ Null0 installed
6. Step 3 — EIGRP Interface-Level Summarization
EIGRP summarization is configured per-interface — on the specific interface through which the summary will be advertised to neighbors. Unlike OSPF which restricts summarization to ABR/ASBR roles, any EIGRP router can summarize routes on any interface. EIGRP summarization suppresses individual component routes in EIGRP updates sent out that interface and replaces them with the summary.
Understand the Summary to Configure
R4's routes to summarize:
10.4.0.0/24, 10.4.1.0/24, 10.4.2.0/24, 10.4.3.0/24
10.4.4.0/24, 10.4.5.0/24, 10.4.6.0/24, 10.4.7.0/24
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
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
─────────────────
↑ ↑ ↑ ↑ ↑ ↕ ↕ ↕ ← 5 bits match in third octet
Summary: 8 + 8 + 5 = /21
Summary address: 10.4.0.0/21 (mask 255.255.248.0)
Covers: 10.4.0.0 → 10.4.7.255
Configure EIGRP Summarization on R4
! ── Verify current EIGRP neighbors and routes advertised ───────── NetsTuts_R4#show ip eigrp neighbors EIGRP-IPv4 Neighbors for AS(100) H Address Interface Hold Uptime SRTT RTO Q Seq 0 10.3.0.1 Gi0/0 14 00:22:45 12 200 0 147 ! ── Neighbor via Gi0/0 — this is the interface to summarize on ─── ! ── Check routes before summarization ──────────────────────────── NetsTuts_R4#show ip eigrp topology | include P 10.4 P 10.4.0.0/24, 1 successors, FD is 128256 P 10.4.1.0/24, 1 successors, FD is 128256 P 10.4.2.0/24, 1 successors, FD is 128256 P 10.4.3.0/24, 1 successors, FD is 128256 P 10.4.4.0/24, 1 successors, FD is 128256 P 10.4.5.0/24, 1 successors, FD is 128256 P 10.4.6.0/24, 1 successors, FD is 128256 P 10.4.7.0/24, 1 successors, FD is 128256 ! ── Configure summarization on the interface facing R2/R3 ──────── NetsTuts_R4(config)#interface GigabitEthernet0/0 NetsTuts_R4(config-if)#ip summary-address eigrp 100 10.4.0.0 255.255.248.0 ! ^^^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ! command ASN summary mask (/21) ! address NetsTuts_R4(config-if)#exit
ip summary-address eigrp command is applied
under the interface configuration — not inside the EIGRP
router process. This is a key difference from OSPF
summarization. The interface specified should be the one
facing the neighbor(s) to whom you want to advertise the
summary. When this command is entered, EIGRP immediately
withdraws the 8 individual /24 routes from updates sent
out Gi0/0 and sends a single update advertising
10.4.0.0/21 instead. A Null0 route is installed locally.
The individual routes remain in R4's local routing table
and EIGRP topology table — they are simply suppressed in
advertisements out this specific interface.
EIGRP Auto-Summary vs Manual Summary
! ── IOS 15.x+ has auto-summary DISABLED by default ─────────────── ! ── Verify it is off (it should be) ───────────────────────────── NetsTuts_R4#show ip protocols | include auto-summary Automatic Summarization: disabled ← ✓ auto-summary off ! ── If auto-summary is enabled (IOS 12.x default — legacy) ─────── ! ── Disable it globally ────────────────────────────────────────── NetsTuts_R4(config)#router eigrp 100 NetsTuts_R4(config-router)#no auto-summary NetsTuts_R4(config-router)#exit ! ── DIFFERENCE: ───────────────────────────────────────────────── ! auto-summary: summarizes at classful boundary automatically ! 10.4.0.0/24, 10.4.1.0/24 → summarized to 10.0.0.0/8 (Class A!) ! This is almost never desirable in modern networks. ! manual summary (ip summary-address): you control the prefix/mask ! 10.4.0.0–10.4.7.0/24 → 10.4.0.0/21 (precise, correct) ! Always use manual summarization and keep auto-summary disabled.
Verify EIGRP Summarization
! ── Verify on R4: Null0 installed for the summary ────────────────
NetsTuts_R4#show ip route 10.4.0.0 255.255.248.0
Routing entry for 10.4.0.0/21
Known via "eigrp 100", distance 5, metric 128256, type internal
Redistributing via eigrp 100
Routing Descriptor Blocks:
* directly connected, via Null0 ← ✓ Null0 installed
! ── Verify on R4: summary-address configured on interface ────────
NetsTuts_R4#show ip eigrp interfaces detail GigabitEthernet0/0
EIGRP-IPv4 Interfaces for AS(100)
Xmit Queue PeerQ Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable Un/Reliable SRTT Un/Reliable Flow Timer Routes
Gi0/0 1 0/0 0/0 12 0/0 50 0
Summary address: 10.4.0.0/21 distance 5 ← ✓ summary configured on Gi0/0
! ── Verify on NEIGHBOR: individual routes replaced by summary ─────
NetsTuts_R2#show ip route eigrp
10.0.0.0/8 is variably subnetted
D 10.4.0.0/21 [90/130816] via 10.3.0.2, 00:00:47, Gi0/1 ← ✓ one summary
! ── 8 individual D routes replaced by single D 10.4.0.0/21 ──────
! ── Verify summary not split into individual routes ──────────────
NetsTuts_R2#show ip route | include 10.4
D 10.4.0.0/21 [90/130816] via 10.3.0.2 ← only the summary, no /24s
7. Intra-Area Summarization Limitation and Workarounds
A common exam question and real-world confusion: OSPF cannot
summarize routes within an area. The
area range command only summarizes routes
between areas (at the ABR). If all routers are in
Area 0, there is no ABR and therefore no summarization point.
Understanding this limitation and its workarounds is important
for OSPF design.
SCENARIO: All routers in OSPF Area 0 only.
Routers R5, R6, R7, R8 each advertise /24 subnets.
R1 wants to see only summary routes, not individual /24s.
PROBLEM: There is no ABR — all routers are internal Area 0 routers.
'area 0 range' has no effect on an internal router (not an ABR).
WORKAROUND OPTIONS:
Option 1 — Redesign into multi-area OSPF:
Create a new area (Area 1) for the /24 subnets.
R5 becomes ABR between Area 0 and Area 1.
R5 uses 'area 1 range' to summarize Area 1 into Area 0.
✓ Correct OSPF design — preferred for large networks.
Option 2 — Use EIGRP for the stub area and redistribute:
Run EIGRP between stub routers.
Redistribute EIGRP into OSPF at the boundary.
Use 'summary-address' (ASBR) to summarize external routes.
✓ Works but creates redistribution complexity.
Option 3 — OSPF Stub/NSSA area:
Stub areas block Type 5 External LSAs.
NSSA areas generate Type 7 LSAs summarized at ABR.
✓ Reduces LSA flooding but doesn't create custom summaries.
BOTTOM LINE: Plan your IP address space so that subnets that
need to be summarized are grouped into separate OSPF areas.
Summarization works best with hierarchical addressing design.
8. Step 4 — Full Verification Across the Network
show ip route — Before and After Summary
! ═══════════════════════ BEFORE SUMMARIZATION ════════════════════ NetsTuts_R1#show ip route ospf O IA 10.1.0.0/24 [110/2] via 10.255.0.2, Gi0/0 O IA 10.1.1.0/24 [110/2] via 10.255.0.2, Gi0/0 O IA 10.1.2.0/24 [110/2] via 10.255.0.2, Gi0/0 O IA 10.1.3.0/24 [110/2] via 10.255.0.2, Gi0/0 O IA 10.2.0.0/24 [110/2] via 10.255.0.6, Gi0/1 O IA 10.2.1.0/24 [110/2] via 10.255.0.6, Gi0/1 O IA 10.2.2.0/24 [110/2] via 10.255.0.6, Gi0/1 O IA 10.2.3.0/24 [110/2] via 10.255.0.6, Gi0/1 O E2 10.4.0.0/24 [110/20] via 10.255.0.2, Gi0/0 O E2 10.4.1.0/24 [110/20] via 10.255.0.2, Gi0/0 O E2 10.4.2.0/24 [110/20] via 10.255.0.2, Gi0/0 O E2 10.4.3.0/24 [110/20] via 10.255.0.2, Gi0/0 O E2 10.4.4.0/24 [110/20] via 10.255.0.2, Gi0/0 O E2 10.4.5.0/24 [110/20] via 10.255.0.2, Gi0/0 O E2 10.4.6.0/24 [110/20] via 10.255.0.2, Gi0/0 O E2 10.4.7.0/24 [110/20] via 10.255.0.2, Gi0/0 ! ── 16 individual entries ← before summarization ───────────────── ! ═══════════════════════ AFTER SUMMARIZATION ═════════════════════ NetsTuts_R1#show ip route ospf O IA 10.1.0.0/22 [110/2] via 10.255.0.2, 00:01:14, Gi0/0 ← ✓ Area 1 summary O IA 10.2.0.0/22 [110/2] via 10.255.0.6, 00:00:58, Gi0/1 ← ✓ Area 2 summary O E2 10.4.0.0/21 [110/20] via 10.255.0.2, 00:00:47, Gi0/0 ← ✓ EIGRP summary ! ── 3 entries instead of 16 ← 81% routing table reduction ────────
show ip ospf database — LSA Reduction Confirmation
! ── Before: 16 LSAs (8 Type3 inter-area + 8 Type5 external) ──────
! ── After: 3 LSAs (2 Type3 summaries + 1 Type5 summary) ──────────
NetsTuts_R1#show ip ospf database summary
OSPF Router with ID (1.1.1.1) (Process ID 1)
Summary Net Link States (Area 0)
LS age: 73
Link State ID: 10.1.0.0 ← Type 3 LSA — Area 1 inter-area summary
Advertising Router: 2.2.2.2
Network Mask: /22 ← /22 summary
LS age: 61
Link State ID: 10.2.0.0 ← Type 3 LSA — Area 2 inter-area summary
Advertising Router: 3.3.3.3
Network Mask: /22
NetsTuts_R1#show ip ospf database external
LS age: 47
Link State ID: 10.4.0.0 ← Type 5 LSA — ASBR external summary
Advertising Router: 2.2.2.2
Network Mask: /21 ← /21 summary
show ip ospf border-routers — ABR/ASBR Identification
NetsTuts_R1#show ip ospf border-routers OSPF Process 1 internal Routing Table Codes: i - Intra-area route, I - Inter-area route i 2.2.2.2 [10] via 10.255.0.2, GigabitEthernet0/0, ABR/ASBR, Area 0 i 3.3.3.3 [10] via 10.255.0.6, GigabitEthernet0/1, ABR, Area 0 ! ── R2 shown as ABR/ASBR (performing both inter-area and external summary) ! ── R3 shown as ABR only (inter-area summary only)
show ip protocols — EIGRP Summary Confirmation
NetsTuts_R4#show ip protocols
*** IP Routing is NSF aware ***
Routing Protocol is "eigrp 100"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP-IPv4 Protocol for AS(100)
...
Routing for Networks:
10.3.0.0/24
10.4.0.0/8 ← loopback networks advertised
Routing Information Sources:
Gateway Distance Last Update
10.3.0.1 90 00:25:14
Automatic Summarization: disabled ← ✓ auto-summary off
NetsTuts_R4#show ip eigrp interfaces detail Gi0/0 | include Summary
Summary address: 10.4.0.0/21 distance 5 ← ✓ manual summary active
Verification Command Summary
| Command | Router | What It Confirms |
|---|---|---|
show ip ospf |
ABR | Confirms router is ABR; shows "Area range: X.X.X.X/YY Advertise" |
show ip route ospf |
Core/downstream router | Summary routes (O IA or O E2) replace individual /24 entries — see show ip route reference |
show ip route [summary-prefix] [mask] |
Summarizing router | Shows Null0 route for the summary — confirms loop prevention |
show ip ospf database summary |
Any OSPF router | Type 3 LSAs — confirms one summary LSA per area range, not multiple /24 LSAs |
show ip ospf database external |
Any OSPF router | Type 5 LSAs — confirms one external summary LSA, not individual external LSAs |
show ip eigrp interfaces detail [int] |
EIGRP summarizing router | Shows "Summary address: X.X.X.X/YY" confirming summary on interface |
show ip route eigrp |
EIGRP neighbor | Summary D route replaces individual D routes — confirms correct advertisement |
show ip protocols |
EIGRP router | Confirms "Automatic Summarization: disabled" — verifies auto-summary is off |
9. Complete Configuration Reference & Key Points
Full Summarization Configuration
! ════════════════ R2 — OSPF ABR + ASBR ══════════════════════════ router ospf 1 router-id 2.2.2.2 network 10.1.0.0 0.0.3.255 area 1 ! Area 1 interfaces network 10.255.0.0 0.0.0.3 area 0 ! Area 0 uplink area 1 range 10.1.0.0 255.255.252.0 ! Inter-area summary → /22 redistribute eigrp 100 subnets ! Redistribute EIGRP into OSPF summary-address 10.4.0.0 255.255.248.0 ! External summary → /21 ! ! ════════════════ R3 — OSPF ABR ══════════════════════════════════ router ospf 1 router-id 3.3.3.3 network 10.2.0.0 0.0.3.255 area 2 network 10.255.0.4 0.0.0.3 area 0 area 2 range 10.2.0.0 255.255.252.0 ! Inter-area summary → /22 ! ! ════════════════ R4 — EIGRP Summarization ═══════════════════════ router eigrp 100 network 10.3.0.0 0.0.0.255 network 10.4.0.0 0.0.7.255 no auto-summary ! interface GigabitEthernet0/0 description Link-to-R2-R3 ip address 10.3.0.2 255.255.255.0 ip summary-address eigrp 100 10.4.0.0 255.255.248.0 ! EIGRP summary → /21
Summary Address Command Reference
| Command | Mode | Protocol | Purpose |
|---|---|---|---|
area [id] range [prefix] [mask] |
Router OSPF config | OSPF ABR | Summarize routes from the specified area into other areas (inter-area). Installs Null0 locally. |
area [id] range [prefix] [mask] not-advertise |
Router OSPF config | OSPF ABR | Suppress all routes from the area matching the prefix — no summary LSA sent. |
area [id] range [prefix] [mask] cost [n] |
Router OSPF config | OSPF ABR | Override the automatically calculated metric for the summary LSA. |
summary-address [prefix] [mask] |
Router OSPF config | OSPF ASBR | Summarize external (redistributed) routes before advertising as Type 5/7 LSAs. Installs Null0. |
summary-address [prefix] [mask] not-advertise |
Router OSPF config | OSPF ASBR | Suppress all external routes matching the prefix. |
ip summary-address eigrp [asn] [prefix] [mask] |
Interface config | EIGRP | Advertise summary to neighbors on this interface. Individual routes suppressed in updates out this interface. Installs Null0. |
no auto-summary |
Router EIGRP config | EIGRP | Disable automatic classful summarization. Always configure this on IOS 12.x — default off in IOS 15.x+. |
show ip ospf |
Privileged exec | OSPF | Verify ABR/ASBR role and show configured area ranges. |
show ip route ospf |
Privileged exec | OSPF | Confirm summary routes (O IA = inter-area, O E2 = external) in routing table. |
show ip ospf database summary |
Privileged exec | OSPF | View Type 3 summary LSAs — confirms single summary LSA per area range. |
show ip eigrp interfaces detail [int] |
Privileged exec | EIGRP | Show EIGRP interface details including active summary addresses. |
Key Points & Exam Tips
- Always use binary to calculate summary addresses. The power-of-2 shortcut works only for perfectly aligned contiguous subnets — in any other case, binary is the only reliable method. Write out the differing octets in binary, find the common prefix, and count the matching bits to determine the prefix length.
- Null0 routes are installed automatically for all summaries. Both OSPF (
area rangeandsummary-address) and EIGRP (ip summary-address) automatically install a Null0 discard route for the summary prefix when the command is configured. This prevents routing loops — the Null0 route has an administrative distance that makes it a valid tie-breaker against the default route. If any specific routes within the summary are removed, the Null0 ensures traffic to those addresses is dropped locally rather than looped back to the advertising router. - OSPF summarization is ABR/ASBR-only.
area rangeonly has effect on a router that is genuinely an ABR (connected to at least two OSPF areas). Configuring it on an internal router in a single area is accepted by IOS but has no operational effect. Verify the router is an ABR withshow ip ospfbefore configuring area range. - EIGRP summarization is per-interface, not per-process. The
ip summary-address eigrpcommand is configured under the interface facing the neighbor(s) who should receive the summary. The same router can advertise different summaries (or no summary) on different interfaces — giving precise control over which neighbors see the summary. area rangesummarizes the area ID in the command, not the destination area.area 1 range 10.1.0.0 255.255.252.0on an ABR means "summarize routes from Area 1" — not "summarize routes that are going into Area 1." The area ID identifies the source area of the routes being aggregated.- Auto-summary in EIGRP is dangerous and must be disabled. EIGRP auto-summary summarizes at classful network boundaries (Class A/B/C). In discontiguous networks (same major network number on multiple non-adjacent interfaces), auto-summary causes black holes — the classful summary covers both sides but only one is reachable from any given point. Always disable with
no auto-summary. - A summary covering unused address space creates a black hole. 10.1.0.0/22 covers 10.1.0.0–10.1.3.255. If 10.1.2.0/24 and 10.1.3.0/24 are not real subnets, traffic destined for those addresses will match the summary at the ABR, be forwarded toward Area 1, match the Null0 at the ABR, and be dropped. Plan your summaries to cover only address space that is actually in use.
- Summary cost in OSPF
area range. By default, the summary LSA cost equals the maximum cost among all component routes within the summary. This can be overridden witharea range ... cost [n]. A fixed cost ensures the summary metric doesn't fluctuate as individual component route costs change. - On the CCNP exam: know the binary calculation method, the difference between
area range(ABR, inter-area) andsummary-address(ASBR, external), the fact that OSPF cannot summarize within a single area, the Null0 black hole route behaviour, and the per-interface nature of EIGRP summarization.
aggregate-address — see
BGP Basics (eBGP).
Route summarization combined with
Policy-Based
Routing (PBR) allows fine-grained traffic engineering
at summarization boundaries. For OSPFv3 and IPv6
summarization the same concepts apply — see
OSPFv3
Configuration and
IPv6 Basic
Configuration.