IPV4 ADDRESSING · PRACTICE

Subnetting practice questions with answers

Work each question on paper first, then open the answer. All ten were calculated with a program and independently checked, and the working is shown so you can see where a mistake crept in. If you need a refresher, read the subnetting formula cheat sheet first.

Ten questions

Tap a question to reveal the answer. Try not to peek until you have an answer of your own.

1. Host 192.168.10.70/26. What are the network address, broadcast address and usable host range?

Block size 256 − 192 = 64, so the subnets are .0, .64, .128, .192 and 70 is in the .64 subnet.

Network 192.168.10.64, broadcast 192.168.10.127, hosts .65 to .126 (62 usable).

2. How many usable host addresses are in 10.0.0.0/22?

Host bits = 32 − 22 = 10. 2^10 = 1,024; 1,024 − 2 = 1,022.

3. What is the smallest prefix length that supports 50 hosts in one subnet?

2^5 − 2 = 30 is too small; 2^6 − 2 = 62 fits. Six host bits means a prefix of 32 − 6 = /26.

4. What is the smallest prefix length that supports 500 hosts?

2^8 − 2 = 254 is too small; 2^9 − 2 = 510 fits. Nine host bits means /23 (255.255.254.0).

5. Convert the mask 255.255.255.224 to a prefix length, and give the block size.

The first three octets give 24 bits. 224 = 11100000 in binary, adding 3 bits. The prefix is /27 and the block size is 256 − 224 = 32.

6. Are 172.16.45.200/21 and 172.16.40.5/21 in the same subnet?

A /21 mask is 255.255.248.0, so the block size in the third octet is 8 and the subnets start at 0, 8, … 40, 48. Both third octets (45 and 40) fall in 40 to 47, so both hosts are in 172.16.40.0/21. Yes.

7. Host 10.1.77.130/25. What is its subnet and broadcast address?

A /25 has a block size of 128 in the last octet, so the subnets are .0 and .128. The host is in 10.1.77.128/25, with broadcast 10.1.77.255.

8. Split 192.168.1.0/24 into four equal subnets. List them.

Four subnets need 2 borrowed bits, so the new prefix is /26 with a block size of 64: 192.168.1.0/26, 192.168.1.64/26, 192.168.1.128/26 and 192.168.1.192/26.

9. Summarize 192.168.0.0/24, 192.168.1.0/24, 192.168.2.0/24 and 192.168.3.0/24 with one route.

The third octets 0 to 3 differ only in the last 2 bits, so 2 bits are variable and the common prefix is 24 − 2 = 22. The summary route is 192.168.0.0/22.

10. Two routers are joined by a point-to-point link. What is the most efficient IPv4 subnet for it, and how many addresses does it use?

The link needs two addresses. A /30 has two usable hosts and uses four addresses. A /31 uses only two addresses and both are usable under RFC 3021, though some older equipment or exam wording may expect /30, so read the question carefully.

Where to go next

Subnetting sits in the first and largest domain of the v2.0 blueprint. Once these feel automatic, timed practice from the mock exam format shows whether you can do it at pace. Related reading: port numbers to know.

Sources and further reading

ccna.dev is independent and not affiliated with or endorsed by Cisco. Always confirm exam details with Cisco.