Supernetting Tutorial: – Supernetting Explained with Examples
Supernetting is also known as route summarization or aggregation. It is the opposite of subnetting. In subnetting, you break a single subnet into many subnets. In supernetting, you join multiple subnets into a single subnet.
The network address and block size are two main elements of supernetting. You can perform supernetting only on the subnets having the same network address. If subnets have different network addresses, you cannot combine them through the supernetting.
When matching network addresses, you need to consider two things. The default network address of all subnets must be the same. The default network address is the address you get from the default network bits. The following table lists the default network and host bits.
| Class | Default Network bits | Default host bits | Subnet mask in decimal notation | Subnet mask in slash notation (CIDR) |
| Class A | 8 | 24 | 255.0.0.0 | /8 |
| Class B | 16 | 16 | 255.255.0.0 | /16 |
| Class C | 24 | 8 | 255.255.255.0 | /24 |
If the default network address is the same across all subnets, you can summarize them into a single subnet with that address. Let us take an example. There are four class C subnets.
192.168.1.0/26, 192.168.2.64/26, 192.168.3.128/26, and 192.168.4.192/26.
In class C, the network bits are the first 24 bits (or three octets). These bits must be the same in all subnets.
192.168.1.0/26, 192.168.2.64/26, 192.168.3.128/26, and 192.168.4.192/26.
Since these subnets have different default network addresses, you cannot summarize them into a single subnet.
Let us take another example subnets.
192.168.0.0/26, 192.168.0.64/26, 192.168.0.128/26, and 192.168.0.192/26.
These subnets have the same network address (192.168.0). You can summarize them in a single subnet 192.168.0.0/24. This subnet also has the same network address (192.168.0).
Block size
The second key element is the block size. To summarize subnets, you use a subnet having a block size equal to or greater than the sum of the block sizes of all subnets.
The preceding example has four subnets having a block size of 64. To summarize these subnets, you need a subnet of a block size of 256 (64 x 4 = 256). The subnet block size for 192.168.0.0/24 is 256. Hence, you can use it to summarize these subnets.
Route summarization steps
- In the first step, check the network address of all subnets. If the default network bits are the same in all subnets, find the block size of all subnets.
- In the second step, add the block sizes of all contiguous subnets. You can summarize only contiguous networks.
- In the third step, find a subnet with the same network address and a block size equal to or greater than the sum of all block sizes.
Route summarization example 1
192.168.1.0/25, 192.168.1.128/26, 192.168.1.192/27, 192.168.1.224/28, 192.168.1.240/30, 192.168.1.244/30, 192.168.1.248/30, 192.168.1.252/30
Route summarization example 2
10.0.0.0/23, 10.0.2.0/24, 10.0.3.0/25, 10.0.3.128/26, 10.0.3.192/27, 10.0.3.224/28, 10.0.3.240/30, 10.0.3.244/30, 10.0.3.248/30, 10.0.3.252/30
In the first step, arrange all subnets in ascending order by CIDR value. If the CIDR value of two subnets is the same, use their network addresses. Write the network and broadcast addresses of all subnets as well. You will use them to identify contiguous subnets.
Supernetting Example 1
| Route | CIDR value | Subnet Mask | Network ID | Broadcast ID | Block Size |
| 192.168.1.0/25 | 25 | 255.255.255.128 | 192.168.1.0 | 192.168.1.127 | 128 |
| 192.168.1.128/26 | 26 | 255.255.255.192 | 192.168.1.128 | 192.168.1.191 | 64 |
| 192.168.1.192/27 | 27 | 255.255.255.224 | 192.168.1.192 | 192.168.1.223 | 32 |
| 192.168.1.224/28 | 28 | 255.255.255.240 | 192.168.1.224 | 192.168.1.239 | 16 |
| 192.168.1.240/30 | 30 | 255.255.255.252 | 192.168.1.240 | 192.168.1.248 | 4 |
| 192.168.1.244/30 | 30 | 255.255.255.252 | 192.168.1.244 | 192.168.1.247 | 4 |
| 192.168.1.248/30 | 30 | 255.255.255.252 | 192.168.1.248 | 192.168.1.251 | 4 |
| 192.168.1.252/30 | 30 | 255.255.255.252 | 192.168.1.252 | 192.168.1.255 | 4 |
Supernetting Example 2
| Route | CIDR value | Subnet Mask | Network ID | Broadcast ID | Block Size |
| 10.0.0.0/23 | 23 | 255.255.254.0 | 10.0.0.0 | 10.0.1.255 | 512 |
| 10.0.2.0/24 | 24 | 255.255.255.0 | 10.0.2.0 | 10.0.2.255 | 256 |
| 10.0.3.0/25 | 25 | 255.255.255.128 | 10.0.3.0 | 10.0.3.127 | 128 |
| 10.0.3.128/26 | 26 | 255.255.255.192 | 10.0.3.128 | 10.0.3.191 | 64 |
| 10.0.3.192/27 | 27 | 255.255.255.224 | 10.0.3.192 | 10.0.3.223 | 32 |
| 10.0.3.224/28 | 28 | 255.255.255.240 | 10.0.3.224 | 10.0.3.239 | 16 |
| 10.0.3.240/30 | 30 | 255.255.255.252 | 10.0.3.240 | 10.0.3.243 | 4 |
| 10.0.3.244/30 | 30 | 255.255.255.252 | 10.0.3.244 | 10.0.3.247 | 4 |
| 10.0.3.248/30 | 30 | 255.255.255.252 | 10.0.3.248 | 10.0.3.251 | 4 |
| 10.0.3.252/30 | 30 | 255.255.255.252 | 10.0.3.252 | 10.0.3.255 | 4 |
In the second step, add the block sizes of all contiguous networks.

Network1 = 128 + 64 + 32 + 16 + 4 + 4 + 4 + 4 = 256 Network2 = 512 + 256 + 128 + 64 + 32 + 16 + 4 + 4 + 4 + 4 = 1024
In the third step, find the subnet having a block size equal to or greater than the sum of the block sizes of all contiguous subnets in the block size chart. The following table lists the block sizes of all IP subnets.
| CIDR | Subnet mask | Block Size |
| /8 | 255.0.0.0 | 16777216 |
| /9 | 255.128.0.0 | 8388608 |
| /10 | 255.192.0.0 | 4194304 |
| /11 | 255.224.0.0 | 2097152 |
| /12 | 255.240.0.0 | 1048576 |
| /13 | 255.248.0.0 | 524288 |
| /14 | 255.252.0.0 | 262144 |
| /15 | 255.254.0.0 | 131072 |
| /16 | 255.255.0.0 | 65536 |
| /17 | 255.255.128.0 | 32768 |
| /18 | 255.255.192.0 | 16384 |
| /19 | 255.255.224.0 | 8192 |
| /20 | 255.255.240.0 | 4096 |
| /21 | 255.255.248.0 | 2048 |
| /22 | 255.255.252.0 | 1024 |
| /23 | 255.255.254.0 | 512 |
| /24 | 255.255.255.0 | 256 |
| /25 | 255.255.255.128 | 128 |
| /26 | 255.255.255.192 | 64 |
| /27 | 255.255.255.224 | 32 |
| /28 | 255.255.255.240 | 16 |
| /29 | 255.255.255.248 | 8 |
| /30 | 255.255.255.252 | 4 |
In the first example, the sum of all subnets' block sizes is 256. The block size of CIDR /24 is 256.
In the next step, count in multiples of the block size. The network number of the first subnet must exist in the range.
192.168.0.0/24, 192.168.1.0/24, 192.168.3.0/24.......
If the network number of the first subnet falls within the range, you use this CIDR along with the network address of the first subnet to summarize the contiguous subnets. Hence, the 192.168.0.0/24 is the summarized subnet of the first example.
In the second example, the sum of all subnets' block sizes is 1024. The CIDR block size for /22 is 1024.
10.0.0.0/22, 10.0.4.0/22, 10.0.8.0/22 ....
The network address of the first subnet is 10.0.0.0. Therefore, 10.0.0.0/22 is the summarized subnet of the second example.
If a network contains non-contiguous subnets, you cannot summarize all subnets into a single subnet. In that case, you can summarize contiguous subnets and leave non-contiguous subnets untouched. Let us take two more examples.
Route summarization example 3

Route summarization example 4

Let us perform route summarization for the subnets listed above.
In the first step, arrange all subnets in ascending order by block size. Also write their network and broadcast addresses.
Route summarization 3 (Router A)
| Route | CIDR | Subnet mask | Network ID | Broadcast ID | Block Size |
| 172.168.1.32 | 28 | 255.255.240.0 | 172.168.1.32 | 172.168.1.47 | 16 |
| 172.168.1.48 | 28 | 255.255.240.0 | 172.168.1.48 | 172.168.1.63 | 16 |
| 172.168.1.128 | 28 | 255.255.240.0 | 172.168.1.128 | 172.168.1.143 | 16 |
| 172.168.1.144 | 28 | 255.255.240.0 | 172.168.1.144 | 172.168.1.159 | 16 |
| 172.168.1.160 | 28 | 255.255.240.0 | 172.168.1.160 | 172.168.1.175 | 16 |
| 172.168.1.176 | 28 | 255.255.240.0 | 172.168.1.176 | 172.168.1.191 | 16 |
Route summarization 3 (Router B)
| Route | CIDR | Subnet mask | Network ID | Broadcast ID | Block Size |
| 172.168.1.64 | 28 | 255.255.240.0 | 172.168.1.64 | 172.168.1.79 | 16 |
| 172.168.1.80 | 28 | 255.255.240.0 | 172.168.1.80 | 172.168.1.95 | 16 |
| 172.168.1.96 | 28 | 255.255.240.0 | 172.168.1.96 | 172.168.1.111 | 16 |
| 172.168.1.112 | 28 | 255.255.240.0 | 172.168.1.112 | 172.168.1.127 | 16 |
| 172.168.1.192 | 28 | 255.255.240.0 | 172.168.1.192 | 172.168.1.207 | 16 |
| 172.168.1.208 | 28 | 255.255.240.0 | 172.168.1.208 | 172.168.1.223 | 16 |
Route summarization 4 (Router A)
| Route | CIDR | Subnet mask | Network ID | Broadcast ID | Block Size |
| 122.128.58.0 | 29 | 255.255.255.248 | 122.128.58.0 | 122.128.58.7 | 8 |
| 122.128.58.48 | 29 | 255.255.255.248 | 122.128.58.48 | 122.128.58.55 | 8 |
| 122.128.58.64 | 29 | 255.255.255.248 | 122.128.58.64 | 122.128.58.71 | 8 |
| 122.128.58.72 | 29 | 255.255.255.248 | 122.128.58.72 | 122.128.58.79 | 8 |
| 122.128.58.80 | 29 | 255.255.255.248 | 122.128.58.80 | 122.128.58.87 | 8 |
Route summarization 4 (Router B)
| Route | CIDR | Subnet mask | Network ID | Broadcast ID | Block Size |
| 122.128.58.8 | 29 | 255.255.255.248 | 122.128.58.8 | 122.128.58.15 | 8 |
| 122.128.58.16 | 29 | 255.255.255.248 | 122.128.58.16 | 122.128.58.23 | 8 |
| 122.128.58.24 | 29 | 255.255.255.248 | 122.128.58.24 | 122.128.58.31 | 8 |
| 122.128.58.32 | 29 | 255.255.255.248 | 122.128.58.32 | 122.128.58.39 | 8 |
| 122.128.58.40 | 29 | 255.255.255.248 | 122.128.58.40 | 122.128.58.47 | 8 |
| 122.128.58.56 | 29 | 255.255.255.248 | 122.128.58.56 | 122.128.58.63 | 8 |
In the second step, group all contiguous subnets. Leave the uncontiguous networks.

In the third step, find the subnet having a block size equal to or greater than the sum of the block sizes of all contiguous subnets.
In the fourth step, count in the block size. If the network address of the first subnet is in the range, use the summarized subnet. If it is not in the range, use the next available block size in descending order in the block size chart and count again. Repeat the process until the network address of the first subnet does not fall within the counting range of the summarized route's block size.
Supernetting example 3 (Router A)
On Router A, you have two groups of contiguous subnets.
In the first group, you have two contiguous subnets: 32 and 48. Both have a block size of 16. The sum of the block sizes is 32 (16 + 16). 32 is a valid block size. A valid block size is one listed in the block size chart.
The network ID of the first sequential subnet is 32, which is a valid network ID in block-size counting (0, 32, 64, …). Block size 32 is associated with CIDR value /27. Hence, you can use this block size for summarization.
Summarize the subnets 172.168.1.32/28 and 172.168.1.48/28 in a single subnet 172.168.1.32/27 of block size 32.
In the second group, you have four sequential subnets: 128, 144, 160, and 176 of block size 16. The sum of all block sizes is 64. 64 is a valid block size. The network ID of the first sequential route (128) is also within the block size range (64), counting (0, 64, 128, 192…). Thus, you can use the block size 64 to summarize these subnets. The CIDR value for a block size of 64 is /26. Use it to summarize these subnets.
Summarize the subnets 172.168.1.128/28, 172.168.1.144/28, 172.168.1.160/28 and 172.168.1.176/28 in a single subnet 172.168.1.128/26 of block size 64.
Supernetting example 3 (Router B)
This router also has two groups of contiguous subnets.
In the first group, you have four contiguous subnets: 64, 80, 96, and 112, each of size 16. The sum of the block sizes is 64 (16 + 16 + 16 + 16). 64 is a valid block size. If you count in block size, the network address of the first subnet is also available in the list.
172.168.1.0/26, 172.168.1.64/26, 172.168.1.128/26....
Therefore, you can summarize the subnets 172.168.1.64/28, 172.168.1.80/28, 172.168.1.96/28, and 172.168.1.112/28 into a single subnet 172.168.1.64/26 with a block size of 64.
In the second group, you have two contiguous subnets: 192 and 208, with a block size of 16. The sum of the block sizes is 32 (16 + 16). 32 is a valid block size. If you count in block size, the network address of the first subnet is also available in the list.
172.168.1.0/27, 172.168.1.32/27, 172.168.1.64/27, 172.168.1.96/27, 172.168.1.128/27, 172.168.1.160/27, 172.168.1.192/27, 172.168.1.224/27....
Therefore, you can summarize the subnets 172.168.1.192/28 and 172.168.1.208/28 into a single subnet 172.168.1.192/27 with a block size of 32.
Supernetting example 4 (Router A)
On this router, you have five subnets. The first two subnets (0 and 48) have no contiguous subnets. Hence, you cannot summarize them. The router will advertise them individually.
The remaining three subnets (64, 72, and 80) are contiguous. The sum of the block sizes (8 + 8 + 8) is 24. 24 is not a valid block size. It is not available in the block size chart. You can use only the block sizes available in the block size chart.
If you exclude one subnet, the sum of the block sizes (8 + 8) will be 16. 16 is a valid block size.
In block size 16, 64 (the network ID of the first sequential subnet) is a valid network ID (0, 16, 32, 48, 64, 80……).
Therefore, you can summarize the subnets 122.128.58.64/29 and 122.128.58.72/29 into a single subnet 122.128.58.64/28 with a block size of 16.
You cannot summarize the third subnet even if it is contiguous. The router will advertise it independently.
Supernetting example 4 (Router B)
On this router, you have six subnets. The last subnet (56) has no contiguous subnets. Hence, you cannot summarize it.
The remaining five subnets (8, 16, 24, 32, and 40) are contiguous.
The sum of block sizes (8+8+8+8+8) is 40. 40 is not a valid block size. It is not available in the block size chart. You can use only the block sizes available in the block size chart.
If you exclude one subnet, the sum of block sizes (8+8+8+8) will be 32. 32 is a valid block size.
The following are valid network addresses in a block size of 32.
122.128.58.0/27, 122.128.58.32/27, 122.128.58.64/27......
Since the network ID of the first contiguous subnet is not available in the above list, you cannot use this block size. The next smaller block size is 16. The valid network addresses with a block size of 16 are the following.
122.128.58.0/27, 122.128.58.16/27, 122.128.58.32/27, 122.128.58.48/27, 122.128.58.64/27, 122.128.58.80/27, 122.128.58.96/27......
The network addresses of the second (122.128.58.16/29) and fourth (122.128.58.32/29) subnets are listed above. Use this block size to summarize the subnets.
You can summarize the subnets 122.128.58.16/29 and 122.128.58.24/29 into the subnet 122.128.58.16/27, with a block size of 16.
Summarize the subnets 122.128.58.32/29 and 122.128.58.40/29 into the subnet 122.128.58.32/27, with a block size of 16.
The following table lists the summarized subnets for all four routers.
| Example3 (Router A) | Example3 (Router B) | Example4 (Router A) | Example4 (Router B) |
| 172.168.1.32/27 | 172.168.1.64/26 | 122.128.58.0/29 | 122.128.58.8/29 |
| 172.168.1.128/26 | 192.168.1.192/27 | 122.128.58.48/29 | 122.128.58.16/28 |
| 122.128.58.64/28 | 122.128.58.32/28 | ||
| 122.128.58.80/29 | 122.128.58.56/29 |
The subnets you cannot summarize are listed in italics.
This tutorial is part of the tutorial series "IP Addressing, and Subnetting in Computer Networks Explained with examples". Other parts of this series are the following.
Chapter 01 Introduction to Subnetting
Chapter 02 Network Address Basic Concepts Explained with Examples
Chapter 03 The Subnet Mask and Slash Notation
Chapter 04 Converting Decimal IP Addresses to Binary and Binary to Decimal
Chapter 05 Basic Subnetting in Computer Networks Explained
Chapter 06 Subnetting Tutorial - Subnetting Explained with Examples
Chapter 07 Subnetting Tricks: Subnetting Made Easy with Examples
Chapter 08 FLSM Subnetting and VLSM Subnetting
Chapter 09 VLSM Subnetting Explained with Examples
Chapter 10 VLSM Subnetting Examples and Calculation Explained
Chapter 11 Route Summarization Advantages and Disadvantages
Chapter 12 Supernetting Tutorial: - Supernetting Explained with Examples
Conclusion
Supernetting (or route summarization) is an essential network design technique that simplifies routing tables, conserves address space, and improves network efficiency by combining multiple subnets into a single supernet. By following the structured steps explained in this tutorial, you can optimize routing performance and maintain scalable, manageable networks.
By ComputerNetworkingNotes Updated on 2026-05-11