Home CCNA Subnetting Example with a /16 prefix – Exclusive How To Guide
CCNA

Subnetting Example with a /16 prefix – Exclusive How To Guide

Diagram Of A /16 Network Subnetted Into Sixteen Equal /22 Subnets, Illustrating A /16 Subnetting Example

In many situations, we require a large number of subnets. For example, the class B network address 130.20.0.0 has a default mask of 255.255.0.0 or /16 Prefix. So, this address has 16 network bits in the network portion and 16 host bits in the host portion. The 16 bits in the host portion are available to borrow for creating subnets.

The table in the figure below highlights all the possible scenarios for subnetting a /16 prefix. The total number of hosts in a network with a/16 prefix is ( 216-2 =65534 ). This is an extensive network. We can subnet this network according to our requirements for better management and performance.

Prefix LengthSubnet MaskSubnet in BinaryAvailable NetworksUsable Hosts per Network
/17255.255.128.011111111.11111111.10000000.00000000
(1 borrowed bit)
2¹ = 22¹⁵ − 2 = 32,766
/18255.255.192.011111111.11111111.11000000.00000000
(2 borrowed bits)
2² = 42¹⁴ − 2 = 16,382
/19255.255.224.011111111.11111111.11100000.00000000
(3 borrowed bits)
2³ = 82¹³ − 2 = 8,190
/20255.255.240.011111111.11111111.11110000.00000000
(4 borrowed bits)
2⁴ = 162¹² − 2 = 4,094
/21255.255.248.011111111.11111111.11111000.00000000
(5 borrowed bits)
2⁵ = 322¹¹ − 2 = 2,046
/22255.255.252.011111111.11111111.11111100.00000000
(6 borrowed bits)
2⁶ = 642¹⁰ − 2 = 1,022
/23255.255.254.011111111.11111111.11111110.00000000
(7 borrowed bits)
2⁷ = 1282⁹ − 2 = 510
/24255.255.255.011111111.11111111.11111111.00000000
(8 borrowed bits)
2⁸ = 2562⁸ − 2 = 254
/25255.255.255.12811111111.11111111.11111111.10000000
(9 borrowed bits)
2⁹ = 5122⁷ − 2 = 126
/26255.255.255.19211111111.11111111.11111111.11000000
(10 borrowed bits)
2¹⁰ = 1,0242⁶ − 2 = 62
/27255.255.255.22411111111.11111111.11111111.11100000
(11 borrowed bits)
2¹¹ = 2,0482⁵ − 2 = 30
/28255.255.255.24011111111.11111111.11111111.11110000
(12 borrowed bits)
2¹² = 4,0962⁴ − 2 = 14
/29255.255.255.24811111111.11111111.11111111.11111000
(13 borrowed bits)
2¹³ = 8,1922³ − 2 = 6

Example: You are a network administrator for a large enterprise that requires 60 sub-networks. Your Public address is 130.20.0.0/16.

Borrowing bits from those mentioned above, the /16 prefix network should start in the third octet, going from left to right. Borrow a single bit one by one until the calculation reaches 60. You can also consult the table in the above figure, which displays the number of subnets and the number of hosts per subnet. We can also create a custom table for 60 subnets. The table below displays the number of subnets that can be made when borrowing bits from the third octet. Notice that the Class B network can borrow up to 14 host bits.

IP Address – 130.20.0.0

Subnet Mask – 255.255.0.0 of /16

Network Bits (N) – 16

Host Bits (H) – 16

Required Sub-networks – 60

For 60 sub-networks, we borrow 6 bits from the third octet for a /22 prefix. VLSM can further adjust sizes (e.g., /24 for smaller sites). Each network’s prefix will change

from /16 + 6 =/22. The subnet mask will be 255.255.252.0 for each Subnetwork, and with 6 borrowed bits, we can make 64 subnets. For Network ID, we will follow the following procedure. 

There are 6 borrowed bits. These borrowed bits will be arranged according to the network number, as in the following table.

Network NumberBorrowed bits arrangement in the third octetRemarks
000000000The first six digits are the binary of 0
100000100The first six digits are the binary of 1
200001000 The first six digits are the binary of the 2
3.The first six digits are the binary of 3
...
...
5011001000 The first six digits are the binary of the 50
...
...
6211111000 The first six digits are the binary of the 62
6311111100The first six digits are the binary of the 63

These binary patterns determine the address ranges, calculating network IDs (e.g., 130.20.80.0), broadcast IPs (e.g., 130.20.83.255), and usable IP ranges (e.g., 130.20.80.1 – 130.20.83.254) for each subnet. For example, we have required the abovementioned parameters for subnet numbers 20, 40, and 55.

Here’s the extracted subnetting calculation from the image showing multiple subnets based on custom binary patterns:


📌 Subnetting Calculation Summary

🔹 Net-20 (Borrowed Bits Binary: 010100)

  • Network Address:130.20.01010000.00000000 = 130.20.80.0
  • First Usable IP: 130.20.01010000.00000001 = 130.20.80.1
  • Last Usable IP: 130.20.01010011.11111110 = 130.20.83.254
  • Broadcast Address: 130.20.01010011.11111111 = 130.20.83.255
  • Network Prefix: /22
  • (20 → Binary 010100, positioned as the first 6 bits in the third octet)

🔹 Net-30 (Borrowed Bits Binary: 101000)

  • Network Address: 130.20.01111000.00000000 = 130.20.120.0
  • First Usable IP: 130.20.01111000.00000001 = 130.20.120.1
  • Last Usable IP: 130.20.01111011.11111110 = 130.20.123.254
  • Broadcast Address: 130.20.01111011.11111111 = 130.20.123.255
  • Network Prefix: /22
  • (30 → Binary 011110, positioned as the first 6 bits in the third octet)

🔹 Net-55 (Borrowed Bits Binary: 110111)

  • Network Address: 130.20.11011100.00000000 = 130.20.220.0
  • First Usable IP: 130.20.11011100.00000001 = 130.20.220.1
  • Last Usable IP: 130.20.11011111.11111110 = 130.20.223.254
  • Broadcast Address: 130.20.11011111.11111111 = 130.20.223.255
  • Network Prefix: /22
  • (55 → Binary 110111, positioned as the first 6 bits in the third octet)

We can do the same process for all 64 sub-networks. So now we can use 50 sub-networks from the 64 sub-networks

Calculating the Hosts for Subnets

To calculate hosts for each subnet, look at the third and fourth octets. After borrowing 6 bits for the subnet, two host bits remain in the third octet and 8 host bits in the fourth octet, for 10 bits in the host portion. So, apply the host calculation formula. There are only 1022 usable host addresses available for each /22 subnet.

Conclusion

Classless subnetting with extensive borrowing ensures scalability for growing networks and aligns with IPv6 /64 prefixes.

About This Content

Author Expertise: 10 years of experience in Enterprise network architecture, routing and switching, IPv4/IPv6 management, network automation, and security fundamentals.. Certified in: CCNP, CCNA

Frequently Asked Questions

How do you subnet a /16 network step by step?

To subnet a /16 network, first determine how many bits you need to borrow from the host portion based on the number of subnets required. Then calculate the new subnet mask, block size, and list each subnet range, network address, and broadcast address. This subnetting example with a /16 prefix clearly shows how to create multiple subnets while maintaining proper network and host addressing.

What is subnetting with a /16 prefix and how does it work?

Subnetting with a /16 prefix means starting with a default Class B mask of 255.255.0.0 and borrowing bits from the third octet to create smaller subnetworks. Each borrowed bit doubles the number of subnets while reducing usable hosts per subnet. This subnetting example with a /16 prefix demonstrates exactly how the math and address allocation works in practical networking.

Why is subnetting a /16 network so confusing for beginners?

Many beginners struggle with subnetting a /16 network because they get lost calculating the block size and increment values in the third octet. The confusion usually comes from misunderstanding how many bits are borrowed versus how many remain for hosts. This subnetting example with a /16 prefix breaks down the process to eliminate the most common beginner mistakes.

What is the best tool for practicing subnetting a /16 prefix?

The best tool for practicing subnetting a /16 prefix is a simple subnet calculator combined with pen and paper for manual verification. Packet Tracer and online subnetting tools like subnetipv4.com also provide excellent hands-on practice. Following this subnetting example with a /16 prefix using these tools helps reinforce the concepts faster than theory alone.

What is the difference between subnetting /16 vs /24 networks?

Subnetting a /16 network gives you 8 bits to borrow in the third octet, allowing up to 256 subnets with 65,534 hosts each originally. In contrast, a /24 only lets you borrow 4 bits in the last octet for a maximum of 16 subnets. This subnetting example with a /16 prefix is ideal for large organizations needing many subnets while keeping large host counts per network.
Avatar Of Asad Ijaz
Asad Ijaz

Editor & Founder

Lead Networking Architect and Editor at NetworkUstad. CCNP and CCNA certified, with 10+ years of experience in enterprise network design, implementation, and troubleshooting. Writes practical tutorials on routing, IPv4 management, network automation, and security fundamentals.

Related Articles