SaveMyCert
Free subnetting practice

Subnetting practice questions with worked answers

Unlimited IPv4 subnetting problems in the patterns certification exams use: which subnet a host is in, broadcast addresses, usable ranges, masks for a number of hosts, overlapping ranges and summary routes. Free, no account needed.

Generating a problem…

Subnetting is tested in the CCNA 200-301 network fundamentals domain. Read the CCNA IPv4 addressing and subnetting lesson or try exam-style CCNA network fundamentals questions.

The eight question patterns

Every problem is generated fresh, so you can practise until the method is automatic. Pick one pattern to drill or leave it on Mixed, type your answer, and check it: a wrong answer shows which part is off, and every answer comes with the worked steps.

One worked example of each pattern
PatternExample questionAnswer
Network addressA host has the address 192.168.193.36/18. What is the network address of its subnet?192.168.192.0
Broadcast addressA host has the address 10.101.8.233/11. What is the broadcast address of its subnet?10.127.255.255
Usable host rangeA host has the address 192.168.237.121/28. What are the first and last usable host addresses in its subnet?192.168.237.113 – 192.168.237.126
Hosts per subnetHow many usable host addresses does the subnet mask 255.255.224.0 provide?8190
Mask for N hostsA subnet must hold 3 hosts. What is the longest prefix (smallest subnet) that fits them? Answer as /n or as a mask./29 (255.255.255.248)
Same subnet?Are 10.37.78.204/29 and 10.37.78.194/29 in the same subnet?no
Overlapping rangesDo 172.24.208.0/20 and 172.24.160.0/19 overlap?no
Route summarisationWhat single summary route covers 192.168.216.128/29, 192.168.216.136/29, 192.168.216.144/29, 192.168.216.152/29?192.168.216.128 – /27

The block-size method, step by step

You do not need binary for most subnetting questions. The block-size method (often called the magic number) finds the network, broadcast and host range with subtraction and multiplication you can do in your head.

Write the mask and find the interesting octet

Convert the prefix to a dotted mask: /27 is 255.255.255.224. The interesting octet is the one that is neither 255 nor 0. That is where the subnet boundary falls, and the only octet you need to work on.

Subtract from 256 to get the block size

Block size = 256 minus the mask value in the interesting octet. For 224 that is 32, so subnets in that octet start at 0, 32, 64, 96 and so on.

Find the block the address falls in

Take the address’s value in the interesting octet and find the largest multiple of the block size that is not bigger than it. For 192.168.10.77/27, 77 sits in the block starting at 64, so the network is 192.168.10.64.

Read off the broadcast and the usable range

The broadcast is the next block’s start minus one (192.168.10.95), with any octets after the interesting one set to 255. The usable range runs from the network plus one to the broadcast minus one: 192.168.10.65 to 192.168.10.94.

Keep going

Subnetting: your questions

Use the block-size method: find the octet where the mask is neither 255 nor 0, subtract the mask value there from 256 to get the block size, and find which multiple of the block size the address falls into. That gives the network address; the broadcast is the next block minus one.