Aggregate Four Contiguous /24 Networks Into One Supernet
Advanced CalculateQuestion
A router has four routes in its table: 10.1.0.0/24, 10.1.1.0/24, 10.1.2.0/24, and 10.1.3.0/24. Aggregate them into the smallest single CIDR prefix that covers exactly these four networks. What is the supernet, and how many usable hosts does it contain?
Given
{
"networks": [
"10.1.0.0/24",
"10.1.1.0/24",
"10.1.2.0/24",
"10.1.3.0/24"
]
}
Answer
{
"supernet": "10.1.0.0/22",
"host_count": 1022
}
Try to solve it first, then click Reveal Answer
Step-by-Step Explanation
Step 1: Verify the networks are contiguous
List the networks in order:
10.1.0.0/24 → third octet = 0
10.1.1.0/24 → third octet = 1
10.1.2.0/24 → third octet = 2
10.1.3.0/24 → third octet = 3
They are consecutive — no gaps.
Step 2: Count the networks and find the borrowed bits
We have 4 networks. Since 4 = 2², we need to return 2 bits to the host portion (the reverse of subnetting):
supernet_prefix = original_prefix - log2(count)
supernet_prefix = 24 - log2(4)
supernet_prefix = 24 - 2 = /22
Step 3: Verify the supernet starting address
Convert the first network address to binary (focus on the third octet):
10.1.0.0 → 00001010.00000001.00000000.00000000
10.1.1.0 → 00001010.00000001.00000001.00000000
10.1.2.0 → 00001010.00000001.00000010.00000000
10.1.3.0 → 00001010.00000001.00000011.00000000
^^
The first 22 bits are identical across all four addresses:
00001010.00000001.000000xx.xxxxxxxx
^--- 22 bits ---^
The supernet address is formed by setting all variable bits to 0: 10.1.0.0/22.
Step 4: Confirm the supernet covers all four /24s
10.1.0.0/22 range: 10.1.0.0 – 10.1.3.255 (1024 addresses)
This exactly covers 10.1.0.x, 10.1.1.x, 10.1.2.x, and 10.1.3.x — no leakage.
Step 5: Calculate usable hosts
host_bits = 32 - 22 = 10
total_addrs = 2^10 = 1024
usable_hosts = 1024 - 2 = 1022
Summary
| Property | Value |
|---|---|
| Four /24s aggregated | 10.1.0.0 – 10.1.3.255 |
| Supernet | 10.1.0.0/22 |
| Total addresses | 1024 |
| Usable hosts | 1022 |
| Subnet mask | 255.255.252.0 |
Route aggregation reduces four routing table entries to one, lowering memory and CPU usage on routers.