Back to course

Practical Subnetting: Calculating /25, /26, and /27

CCNA: 0 to Hero - Comprehensive Network Engineering Bootcamp

Lesson 16: Practical Subnetting: Calculating /25, /26, and /27

Let's assume we start with the network 192.168.1.0/24 (Class C).

Calculation Method: The 'Magic Number' (Block Size)

To find the block size (how often the network addresses increment), subtract the last octet of the custom mask from 256.

Example 1: Subnetting to /25

  • Default mask: 255.255.255.0. New mask: 255.255.255.128.
  • We borrowed N=1 bit. $2^1 = 2$ subnets.
  • Remaining host bits H=7. $2^7 - 2 = 126$ usable hosts.
  • Magic Number: $256 - 128 = 128$.
Subnet IDRange (Usable Hosts)Broadcast
192.168.1.0192.168.1.1 - 192.168.1.126192.168.1.127
192.168.1.128192.168.1.129 - 192.168.1.254192.168.1.255

Example 2: Subnetting to /26

  • New mask: 255.255.255.192. We borrowed N=2 bits. $2^2 = 4$ subnets.
  • Magic Number: $256 - 192 = 64$.

Subnets increment by 64: 0, 64, 128, 192.