Subnetting drills with worked answers
A practice set of subnetting problems in the format and difficulty of the Final Weighted Exam (network and broadcast addresses, host and subnet counts, VLSM, summaries, wildcards and IPv6), each with the answer and reasoning a beginner can follow. Nothing is timed: time yourself.
What you'll learn
- Subnet quickly under time pressure.
- Recognize trick wording around 'usable' vs 'total' addresses.
Drill 1 — network address
Q: What is the network address of 172.16.42.99 / 22? A: 172.16.40.0.
Why: /22 → mask 255.255.252.0 → magic 4 in octet 3. Largest multiple of 4 ≤ 42 is 40.
Step by step: a /22 has 22 network bits. The first two octets supply 16 of them, so 6 more come from the third octet. Six ones in an octet are 11111100, which is 252, so the mask is 255.255.252.0. The block size in the third octet is 256 − 252 = 4, so networks start at 0, 4, 8 … 36, 40, 44. 42 sits in the block that starts at 40.
Every bit of the fourth octet is a host bit, so in the network address it is 0: 172.16.40.0. Check by finding the next network, 172.16.44.0. This one ends just before it, so its broadcast is 172.16.43.255.
Drill 2 — usable hosts
Q: How many usable hosts in 10.0.0.0 / 26? A: 62.
Why: 32 − 26 = 6 host bits → 64 addresses → 62 usable.
Step by step: an IPv4 address has 32 bits, and the prefix says how many of them are network bits. 32 − 26 leaves 6 host bits, and 6 bits count 2^6 = 64 values. Two of those addresses are not for hosts: the first, with every host bit 0, is the network address, and the last, with every host bit 1, is the broadcast. So 64 − 2 = 62. The rule is 2^h − 2, where h is the number of host bits.
Watch the wording. 'How many addresses' is 64. 'How many hosts', 'usable' or 'assignable' is 62.
15 more sections in this chapter, plus a 4-question quiz and a hands-on lab.
Modules 2–8 are part of the Course & Lab Pass and All-Access Max — start with a free account
You can see the title, summary, learning objectives and the opening sections. The rest of this chapter, like all of modules 2–8, comes with the Course & Lab Pass and All-Access Max. A free account opens Module 1: How Networks Work end-to-end and saves your labs — start there, no card required.
- Read every chapter in Module 1 — How Networks Work
- Save labs of up to 5 devices
- Save up to 3 topologies
- See the full course syllabus + chapter titles
Free account · no card required · compare plans any time