What is supernetting?
Supernetting joins several small networks into one bigger network. It is the opposite of subnetting. Four /24 networks that sit side by side, 192.168.0.0 to 192.168.3.0, can be written as one /22: 192.168.0.0/22.
In routing, the same idea is called route summarization or route aggregation. A router announces one summary route instead of four separate ones. The routing table gets shorter, routers use less memory, and a problem in one small network stays local instead of being announced everywhere.
How to use this supernetting calculator
Type or paste the networks into Enter Subnets, one per line, like 192.168.0.0/24. You can also write the mask in full, like 192.168.0.0/255.255.255.0. Click Copy Example if you want a sample to paste in and try.
The result appears below the form. From then on it follows your changes, so you can add or remove a line and watch the result update. If a line is not valid, a red message names it.
The note at the top says if your networks fit the summary exactly, or how many extra addresses the summary also covers. Summary Network Details shows the single network that contains all your networks. Individual Networks lists each of your networks in address order, with the same details.
Tick or untick boxes in Show Columns to choose what you see: first and last usable IP, broadcast, usable and total hosts, subnet mask, wildcard mask and IP type. It works for both tables. On a phone or tablet that row slides sideways. The network column is always shown.
Copy puts both tables on your clipboard and Download saves them as a CSV file, with the summary on the first row. Both use only the columns you ticked. Clear All empties the box and hides the result.
Common slip-ups
- "Enter at least two networks". One network has nothing to join with.
- Extra addresses in the note. Your list has gaps, or does not fill the whole summary block. See the second example below.
- A line is marked as not valid. Each network needs a prefix, such as
/24. An address with no prefix is not enough. - Fewer networks in the table than I entered. Duplicates and networks that sit inside another one are left out.
How route summarization works
Look at the first and the last address of all your networks. The bits that are the same at the start of both addresses are the bits every network shares. That is the summary.
Example 1: four /24 networks that fit exactly
The networks are 192.168.0.0/24, 192.168.1.0/24, 192.168.2.0/24 and 192.168.3.0/24.
- The first address is
192.168.0.0and the last is192.168.3.255. - In binary, the third byte of the first address is
00000000and of the last is00000011. They share the first 6 bits of that byte. - 16 bits from the first two bytes plus 6 shared bits makes a prefix of
/22. - The four networks hold 4 × 256 = 1,024 addresses, and a
/22holds 1,024. Nothing extra is covered.
Summary Network Details
| Summary Network | First Usable IP | Last Usable IP | Broadcast Address | Total Usable Hosts | Total Available Hosts | Subnet Mask | Wildcard Mask |
|---|---|---|---|---|---|---|---|
| 192.168.0.0/22 | 192.168.0.1 | 192.168.3.254 | 192.168.3.255 | 1,022 | 1,024 | 255.255.252.0 | 0.0.3.255 |
Individual Networks
| Network Address | First Usable IP | Last Usable IP | Broadcast Address | Total Usable Hosts | Total Available Hosts | Subnet Mask | Wildcard Mask |
|---|---|---|---|---|---|---|---|
| 192.168.0.0/24 | 192.168.0.1 | 192.168.0.254 | 192.168.0.255 | 254 | 256 | 255.255.255.0 | 0.0.0.255 |
| 192.168.1.0/24 | 192.168.1.1 | 192.168.1.254 | 192.168.1.255 | 254 | 256 | 255.255.255.0 | 0.0.0.255 |
| 192.168.2.0/24 | 192.168.2.1 | 192.168.2.254 | 192.168.2.255 | 254 | 256 | 255.255.255.0 | 0.0.0.255 |
| 192.168.3.0/24 | 192.168.3.1 | 192.168.3.254 | 192.168.3.255 | 254 | 256 | 255.255.255.0 | 0.0.0.255 |
Example 2: two networks with a gap
The networks are 192.168.0.0/24 and 192.168.2.0/24. The first address is 192.168.0.0 and the last is 192.168.2.255. The third byte goes from 00000000 to 00000010, so they share 6 bits and the summary is again a /22. But your two networks hold only 512 addresses and a /22 holds 1,024. The summary also covers 192.168.1.0/24 and 192.168.3.0/24, which are not in your list. The calculator shows this as 512 extra addresses.
| Summary Network | First Usable IP | Last Usable IP | Broadcast Address | Total Usable Hosts | Total Available Hosts | Subnet Mask | Wildcard Mask |
|---|---|---|---|---|---|---|---|
| 192.168.0.0/22 | 192.168.0.1 | 192.168.3.254 | 192.168.3.255 | 1,022 | 1,024 | 255.255.252.0 | 0.0.3.255 |
When is a summary exact?
A summary covers your networks and nothing else only when all three of these are true:
- The networks are next to each other, with no gaps.
- Together they fill the whole summary block. That means a power of 2 of equal-sized networks: 2, 4, 8, 16 and so on.
- The first network starts on the boundary of the block.
192.168.1.0/24and192.168.2.0/24are side by side, but they cannot make an exact/23, because a/23must start on an even third byte.
Here is how many /24 networks it takes to fill each summary:
| Networks | Summary prefix | Summary subnet mask | Addresses |
|---|---|---|---|
| 2 × /24 | /23 | 255.255.254.0 | 512 |
| 4 × /24 | /22 | 255.255.252.0 | 1,024 |
| 8 × /24 | /21 | 255.255.248.0 | 2,048 |
| 16 × /24 | /20 | 255.255.240.0 | 4,096 |
| 32 × /24 | /19 | 255.255.224.0 | 8,192 |
| 64 × /24 | /18 | 255.255.192.0 | 16,384 |
| 128 × /24 | /17 | 255.255.128.0 | 32,768 |
| 256 × /24 | /16 | 255.255.0.0 | 65,536 |
Where summarization helps
Use it at the edge of an area or a site. A branch router that owns 10.1.0.0/24 to 10.1.3.0/24 can announce just 10.1.0.0/22 to the rest of the network. It works best when you plan addresses with it in mind: give each site a block that fills a summary exactly, and your routing tables stay small as you grow.
To look closer at one network, put its address and mask into the IPv4 Subnet Calculator. To split a network instead of joining networks, use the FLSM Calculator.