Method

How to Subnet Fast — The Block Size Method

The fastest way to subnet is the block-size method: find the block size in the interesting octet, list the subnet boundaries, and read off the network, broadcast and host range. No long binary conversions required.

Step 1 — find the block size

Block size = 256 − the mask value in the octet the prefix lands in. Look up the mask value from the eight magic numbers (128, 192, 224, 240, 248, 252, 254, 255).

Example: /26 → mask 255.255.255.192 → 256 − 192 = block size 64 in the 4th octet.

Step 2 — list the subnet boundaries

Count up from 0 in steps of the block size in the interesting octet:

/26  block 64  →  .0   .64   .128   .192

These are your network addresses.

Step 3 — find your address’s subnet

Find the two boundaries your host sits between. The lower one is the network. Example: 192.168.1.200/26 — 200 is between 192 and (the next would be 256), so the network is 192.168.1.192.

Step 4 — read broadcast and host range

The broadcast is one below the next network boundary. The usable range is everything in between.

Network:   192.168.1.192
First host:192.168.1.193
Last host: 192.168.1.254
Broadcast: 192.168.1.255

That is the whole method. When the prefix is smaller than /24 (like /21), apply exactly the same steps but in the 3rd octet instead of the 4th.

Common mistakes

  • Using the wrong octet. /25–/30 work in the 4th octet; /17–/23 in the 3rd; /9–/15 in the 2nd. Match the prefix to the octet first.
  • Forgetting −2 for hosts. The boundary is the network; the address just below the next boundary is the broadcast. Neither is usable.
  • Off-by-one on the broadcast. Broadcast = next network − 1, not next network.

Frequently asked questions

What is the magic number in subnetting?

The magic number (block size) is 256 minus the subnet-mask value in the interesting octet. It tells you the increment between subnets and lets you subnet without binary.

Can I subnet without converting to binary?

Yes. The block-size method uses only the eight mask values and simple counting. Binary is useful for understanding, but not required for speed.

How do I subnet a /21 or /22?

Same steps, but the interesting octet is the 3rd. A /21 (mask 255.255.248.0) has block size 8 in the 3rd octet, so networks are x.x.0.0, x.x.8.0, x.x.16.0, and so on.

How fast should I be for the CCNA exam?

Aim to find network, broadcast and host range for any address in under 30 seconds. That comes from repetition — do a set of practice questions daily.

VS
Vipul Sir — Lead Instructor, Attila Technologies20+ years in Cisco networking. Teaching CCNA, CCNP, CCIE & CyberOps in Ahmedabad since 2004.

Want hands-on training?

Learn this on real Cisco lab devices with placement support at Attila Technologies, Ahmedabad.

Start your networking career with Attila Technologies

Hands-on Cisco training, real lab devices and placement support in Ahmedabad.