LearningAid

Subnetting

Split a network into the right-sized pieces, fast. Work through the three steps below: learn the cards, test yourself, then tick off what you can explain.

1. Learn

Three animated cards. Watch the bar move down each row, then read the notes.

Animated card of subnet masks from /24 to /30 with block sizes and host counts

Subnet mask cheat sheet

  • The prefix length is the number of network bits. The rest are host bits.
  • Usable hosts = 2^n - 2, where n is the number of host bits.
  • Block size = 256 - mask value in the interesting octet.
  • /24 254 hosts, /25 126, /26 62, /27 30, /28 14, /29 6, /30 2.

Memorise the last-octet masks: 128, 192, 224, 240, 248, 252. Each one halves the block size.

Download PNG

Animated card of the five subnetting steps

Subnetting in 5 steps

  • Find the interesting octet: the one where the mask is not 0 or 255.
  • Block size is 256 minus the mask value in that octet.
  • List the subnets by counting up in multiples of the block size.
  • The network address is the start of the block. The broadcast is the next network minus 1.
  • Usable hosts run from network + 1 to broadcast - 1.

Worked example: 192.168.1.70/26. Block size 64, so subnets start at .0, .64, .128, .192. The host is in 192.168.1.64, broadcast .127, usable .65 to .126.

Download PNG

Animated card of private and special IPv4 address ranges

Private and special ranges

  • Private: 10.0.0.0/8, 172.16.0.0/12 (172.16 to 172.31) and 192.168.0.0/16.
  • Loopback: 127.0.0.0/8. 127.0.0.1 is the device itself.
  • Link-local (APIPA): 169.254.0.0/16, self-assigned when DHCP fails.
  • Multicast: 224.0.0.0/4, 224.0.0.0 to 239.255.255.255.

Private ranges are not routed on the public internet. NAT lets private hosts reach it. Note that 172.32.x.x is public.

Download PNG

2. Practice

Nine quick questions. Pick an answer to see the result.

Score: 0 / 0

3. Master

Tick each item only when you can do it without looking.

0 of 0 done
Subnetting mastered. Nice work.