🧮 Subnetting Mastery
9 Min. Lesezeit
Supernetting & Route Aggregation
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://ipfyi.com/iframe/guide/supernetting-route-aggregation/" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://ipfyi.com/guide/supernetting-route-aggregation/
Add a dynamic SVG badge to your README or docs.
[](https://ipfyi.com/guide/supernetting-route-aggregation/)
Use the native HTML custom element.
Learn how supernetting combines multiple smaller networks into a single route to reduce routing table size and improve network efficiency.
What Is Supernetting?
Supernetting (also called route aggregation or route summarization) is the opposite of subnetting. Instead of dividing a network into smaller subnets, you combine multiple contiguous networks into a single larger network prefix.
Before aggregation (4 routes):
192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
After aggregation (1 route):
192.168.0.0/22
Why Aggregate Routes?
- Smaller routing tables — Fewer entries mean faster lookups and less memory usage on routers.
- Reduced BGP updates — Fewer routes advertised to peers means less churn.
- Simplified management — One summarized route is easier to maintain than many specific ones.
How to Calculate a Summary Route
- Convert all network addresses to binary.
- Find the common prefix bits shared by all networks.
- The summary route uses that common prefix with a shorter mask.
192.168.0.0 = 11000000.10101000.00000000.00000000
192.168.1.0 = 11000000.10101000.00000001.00000000
192.168.2.0 = 11000000.10101000.00000010.00000000
192.168.3.0 = 11000000.10101000.00000011.00000000
^^^^^^^^
Common prefix: 22 bits → 192.168.0.0/22
Requirements for Aggregation
- Networks must be contiguous — no gaps in the address range.
- The number of networks should be a power of 2 (2, 4, 8, 16...).
- The starting network must be aligned to the summary boundary.
| Networks | Mask Reduction |
|---|---|
| 2 networks | /24 → /23 |
| 4 networks | /24 → /22 |
| 8 networks | /24 → /21 |
| 16 networks | /24 → /20 |
Potential Pitfalls
- Black holes — If only 3 of 4 /24s exist but you advertise /22, traffic to the missing /24 gets routed to your network and dropped.
- Over-aggregation — Aggregating non-contiguous blocks requires advertising a larger block than necessary, wasting address space.
- Longest prefix match — More specific routes always win, so internal routing still works even with summary routes at the edge.