Subnetting Trainer
Practice subnetting questions with instant feedback.
Question 1
-Pick the topics you want to drill, then start. Each question is generated at random, and you get instant feedback with the working shown.
Score
Recent answers
Doing this in your head
The trick most people rely on is the block size. Work out which octet the prefix ends in, then subtract that octet's mask value from 256. A /26 gives a mask of 255.255.255.192, and 256 - 192 = 64, so subnets begin at .0, .64, .128 and .192. Whichever of those the address falls between is the network, and the next boundary minus one is the broadcast.
Host counts come from the bits left over: 2(32-prefix) - 2. Worth memorising the small ones — /30 gives 2, /29 gives 6, /28 gives 14, /27 gives 30, /26 gives 62, /25 gives 126, /24 gives 254 — because they cover most day-to-day work and the pattern doubles each step.
A wildcard mask is just the subnet mask subtracted from 255.255.255.255, so 255.255.255.192 becomes 0.0.0.63. Cisco ACLs and OSPF network statements want the wildcard, not the mask, which is a classic source of rules that silently match nothing.