← All posts

Subnetting

How to subnet in your head: the block-size method

· 5 min read

Subnetting questions look scary because they are usually taught in binary. You can skip most of it. The block-size method works from the mask alone and answers the four things the exam asks: the network address, the broadcast address, the first and last usable host, and how many hosts fit.

The four steps

  • Find the interesting octet: the one where the mask is neither 255 nor 0.
  • Block size = 256 minus the mask value in that octet.
  • Network address = the largest multiple of the block size that is not above the address.
  • Broadcast = the next network address minus 1. Usable hosts sit between the two.

Worked example: 192.168.10.77/26

A /26 mask is 255.255.255.192, so the interesting octet is the fourth and its mask value is 192. The block size is 256 − 192 = 64, so the subnets start at .0, .64, .128 and .192.

Address        192.168.10.77
Block size     64
Network        192.168.10.64    (64 is the largest multiple of 64 that is ≤ 77)
Broadcast      192.168.10.127   (next network .128, minus 1)
Usable range   192.168.10.65 – 192.168.10.126
Usable hosts   62

Counting hosts

A /26 leaves 6 host bits, so there are 2⁶ = 64 addresses. The network and broadcast addresses are reserved, which leaves 2⁶ − 2 = 62 usable hosts. This is the classic trap: answering 64 loses the mark.

Practise it until it is automatic

Memorise the block sizes for the interesting octet (128, 64, 32, 16, 8, 4, 2) and run the four steps on random addresses. The free drill on the home page gives you a fresh address every time and tells you why a wrong answer was wrong.

Put it into practice: the drill gives you a fresh question every time and explains each miss.

Try a drill