What Is Supernetting? A Route Summarization Guide
What Is Supernetting?
In large enterprise networks and on the internet backbone, the size of the routing table matters. Carrying every network as a separate entry fills router memory, makes routing protocols send more updates and slows down how quickly a change spreads through the network.
Supernetting means expressing several contiguous, properly aligned subnets as a single block with a shorter common prefix. In routing it is called route summarization or aggregation.
In short: subnetting splits a network into pieces, supernetting gathers those pieces under one entry. It only works because of CIDR (Classless Inter-Domain Routing), where prefix length is independent of the old class boundaries.
Subnetting vs. Supernetting
| Feature | Subnetting | Supernetting |
|---|---|---|
| Goal | Split a block into smaller parts | Gather small blocks into one entry |
| Prefix change | Prefix gets longer (e.g. /24 → /26) | Prefix gets shorter (e.g. /24 → /22) |
| Routing table | More entries | Fewer entries |
| Typical use | LAN and VLAN design | Routing between areas, branches and providers |
Why Use Route Summarization?
1. A smaller routing table
Every entry uses router memory. Fewer entries mean less memory and faster convergence. Per-packet lookup is already very fast on modern hardware; the real gain from summarization is table size and control-plane load.
2. A more stable network
When a link keeps going up and down (route flapping), every change is sent through the network as an update. If that subnet sits inside a summary, the change stays hidden; as long as the summary route remains, other routers do not recalculate.
3. Easier growth
When new subnets are allocated from inside an existing summary block, routers outside need no changes at all.
How to Calculate a Supernet (Step by Step)
The most reliable method is to write the addresses in binary and find the common bits from the left.
Scenario: We want to combine these four /24 networks into one route:
- 192.168.0.0/24
- 192.168.1.0/24
- 192.168.2.0/24
- 192.168.3.0/24
Step 1: Write the differing octet in binary
The first two octets (192.168) are identical. Look at the third octet:
| Decimal | Binary |
|---|---|
| 0 | 00000000 |
| 1 | 00000001 |
| 2 | 00000010 |
| 3 | 00000011 |
Step 2: Count the common bits
The first 6 bits from the left (000000) match in every row; they differ from bit 7. The common part of the third octet is 6 bits.
Step 3: Find the new prefix
16 bits from the first two octets + 6 bits from the third = 22.
Step 4: Write the summary address
Everything after the common bits is set to zero: the third octet 00000000 = 0.
Result: 192.168.0.0/22. This block covers exactly 192.168.0.0 – 192.168.3.255, i.e. the four /24s.
Two Conditions for a Clean Summary: Contiguity and Alignment
For a group of networks to summarize into one block with nothing extra:
- The number of networks must be a power of two (2, 4, 8, 16…) and they must be contiguous.
- The starting address must be aligned to the block size. For a /22 made of four /24s, the third octet must be a multiple of 4 (0, 4, 8…).
The second condition is easy to miss. For example, 192.168.1.0/24 and 192.168.2.0/24 are contiguous but do not fit in a single /23: 192.168.0.0/23 covers 0–1 and 192.168.2.0/23 covers 2–3. The smallest block that covers both is 192.168.0.0/22, which also includes 192.168.0.0/24 and 192.168.3.0/24 that you may not own.
Instead of checking this by hand, paste your networks into the route summarizer to verify the result.
Summarization in Routing Protocols
OSPF
OSPF is a link-state protocol and every router in an area keeps the same topology information, so you cannot summarize inside an area. Summarization happens between areas on the ABR (Area Border Router) with area <id> range, and for external routes on the ASBR with summary-address.
EIGRP
EIGRP summarizes per interface and can do it at any point in the network. When a summary is configured, the router automatically installs a route for the summary pointing to Null0 to prevent loops.
BGP
BGP, the routing protocol of the internet, summarizes with aggregate-address. Providers advertise the many smaller networks inside their allocated block as a single prefix. The global IPv4 table holds roughly one million prefixes today; without aggregation it would be far larger.
Risks of Bad Summarization
- Black holes: If you advertise a broad summary that also covers ranges you do not use, traffic for those ranges comes to you and is dropped because the destination does not exist.
- Routing loops: A router that advertises a summary but has no more specific entry for a destination inside it may send the packet back along its default route; the packet bounces between two devices until its TTL expires. Pointing the summary at
Null0prevents this. - Misdirected traffic: Summaries that are wider than necessary can pull another branch's or organisation's traffic towards you.
Practical Scenario: Four VLANs Under One /22
The head office has four VLANs:
| VLAN | Department | Network |
|---|---|---|
| 10 | HR | 10.10.0.0/24 |
| 20 | Accounting | 10.10.1.0/24 |
| 30 | IT | 10.10.2.0/24 |
| 40 | Sales | 10.10.3.0/24 |
The head office router advertises these as four separate routes to the branch router. To summarize:
- The networks are contiguous: 0, 1, 2, 3.
- There are 4 = 2^2 networks, so the prefix shortens by 2 bits: /24 → /22.
- The start is 10.10.0.0 and the third octet 0 is a multiple of 4, so alignment is correct.
The branch router now keeps a single 10.10.0.0/22 entry and sends all traffic for 10.10.0.0 – 10.10.3.255 to the head office over one route. A new VLAN at the head office needs no change at the branch as long as it stays inside that range.
Frequently Asked Questions (FAQ)
Can I combine any two subnets into one route? →
Without extra space, only if they are contiguous, their count is a power of two and the start is aligned to the block size. For example, 192.168.1.0/24 and 192.168.2.0/24 do not fit in one /23; the smallest block covering both is 192.168.0.0/22.
What is the difference between supernetting and subnetting? →
Subnetting lengthens the prefix to split a block (e.g. /24 → /26). Supernetting shortens the prefix to combine blocks (e.g. four /24s → /22).
Does summarization affect security? →
It is not a security control in itself. It reveals less of the internal structure, but an overly broad summary can pull traffic to the wrong place or black-hole it.
Was supernetting possible before CIDR? →
No. In classful routing the prefix length was tied to classes A, B and C. CIDR made prefix length flexible and summarization possible.
How much does summarization improve performance? →
Per-packet lookup is already very fast on modern hardware. The gain is mainly a smaller table, fewer updates and faster convergence, and it grows with the number of routes.