subbing/24
Subbing › Guides › VLSM

VLSM practice

Size, split and summarise subnets. Relevant for CCNA.

Variable-length subnet masking is subnetting applied backwards: start from the hosts you need, or the subnets you need, and find the prefix. The CCNA asks it in several disguises, and all of them come down to powers of two and block sizes.

Subbing covers sizing a subnet for a host count, counting the subnets that fit in a block, finding the nth subnet and the next subnet, borrowing bits for a required number of subnets, splitting a block into equal parts, and summarising contiguous /24s into one route.

Start drilling vlsmGet the Android app
Five sample questions, with the working

Generated by the same code as the app. They change with every release; the app never runs out.

Block size of a /23 (the increment in its interesting octet)?
Answer: 2
  1. /23 → 255.255.254.0, octet #3 = 254
  2. 256 - 254 = 2
Split a /24 into 4 equal subnets. Usable hosts in each?
Answer: 62
  1. 4 = 2^2 → /24 + 2 = /26
  2. 2^6 - 2 = 62
How many /22 subnets fit in a /20?
Answer: 4
  1. 22 - 20 = 2 bits → 2^2 = 4
Which subnet comes right after 10.217.48.0/29?
Answer: 10.217.48.8
  1. /29: block size 8 in octet #4
  2. 0 + 8 = 8 → 10.217.48.8
Split 10.212.176.0/20 into /26s. Network address of the 5th subnet?
Answer: 10.212.177.0
  1. /26: block size 64 in octet #4
  2. 10.212.176.0 + 4 × 64 = 10.212.177.0
Question types in this topic
Guide

VLSM and route summarisation: Sizing subnets for host counts, carving a block into subnets, finding the nth subnet, and summarising contiguous networks into one route.

Questions people ask

What is the smallest subnet for 50 hosts?

You need 50 + 2 = 52 addresses. The smallest power of two at or above 52 is 64 = 2^6, so 6 host bits and a /26.

How do you summarise 10.1.4.0/24 to 10.1.7.0/24?

Four contiguous /24s is 2^2, so free 2 bits: 24 - 2 = /22. The first network, 10.1.4.0, is aligned to a block of 4 in the third octet, so the summary is 10.1.4.0/22.

Start drilling vlsmGet the Android app
Other topics
Subnetting practiceMasks, ranges and hostsIPv6 practiceNotation, types, EUI-64Port numbers quizWell-known ports, TCP vs UDP