CompTIA Network+ · N10-009
Network+ Subnetting Practice Questions
Subnetting appears across the Network+ exam, in addressing questions and in troubleshooting scenarios. These 15 original questions cover network and broadcast addresses, host counts, masks, VLSM and route summarization. Every explanation shows the math so you can check your own method.
What these 15 questions cover
- CIDR notation and subnet masks
- Network, broadcast and usable host ranges
- Choosing a mask for a host or subnet count
- VLSM and route summarization
- Spotting subnet misconfigurations
- IPv6 address shortening
Usable hosts
A technician assigns the subnet 192.168.10.0/26 to a new VLAN. How many usable host addresses does this subnet provide?
Network address
A server is configured with the address 172.16.45.200/20. What is the network address of the subnet it belongs to?
Broadcast address
A workstation has the address 10.20.30.77/27. What is the broadcast address of its subnet?
Choosing a mask
A network administrator needs one subnet that supports 500 hosts and wants to waste as few addresses as possible. Which subnet mask should be used?
CIDR notation
A network diagram lists the campus address block as 10.50.96.0/21. Which subnet mask is the dotted decimal form of /21?
Host ranges
A printer has the address 192.168.1.100/26. Which of these addresses is a usable host address on the same subnet as the printer?
Subnet counts
A technician divides the network 192.168.4.0/24 into /28 subnets. How many subnets are created, and how many usable hosts does each one have?
Point-to-point links
A network engineer needs a subnet for a link between two routers. The subnet must have exactly two usable host addresses in addition to a network address and a broadcast address. Which prefix length should be used?
Host ranges
An administrator assigns the subnet 192.168.50.0/23 to a wireless network. What is the last usable host address in this subnet?
VLSM
An administrator is dividing 10.0.0.0/24 with VLSM. The subnet 10.0.0.0/25 has already been assigned to a LAN with 100 hosts. Which is the smallest subnet that fits a second LAN with 50 hosts without overlapping the first?
Route summarization
A router has routes to 192.168.8.0/24, 192.168.9.0/24, 192.168.10.0/24 and 192.168.11.0/24. Which single summary route covers exactly these four networks?
Subnet misconfiguration
A PC is configured with the address 10.1.1.50, the mask 255.255.255.224 and the default gateway 10.1.1.65. The PC can reach neighbors on its subnet but nothing beyond it. What is the problem?
Usable hosts
A company allocates the subnet 172.20.8.0/22 to a campus building. How many usable host addresses does this subnet provide?
IPv6 addressing
A technician needs to write the IPv6 address 2001:0db8:0000:0000:00a0:0000:0000:0001 in its shortest correct form. Which address should the technician write?
Choosing a mask
A company has the network 192.168.100.0/24 and needs at least 6 subnets, each with at least 25 usable hosts. Which prefix length meets both requirements?
All 15 Network+ Subnetting questions with answers
Try the set above first. Then open any question below to check the answer and read why it is correct.
Usable hosts
1. A technician assigns the subnet 192.168.10.0/26 to a new VLAN. How many usable host addresses does this subnet provide?
- A. 30
- B. 62
- C. 64
- D. 126
Show the answer
B. 62
A /26 leaves 6 host bits, and 2 to the power of 6 is 64 addresses. Subtract the network address and the broadcast address to get 62 usable hosts. The answer 64 is the total address count, not the usable count.
Network address
2. A server is configured with the address 172.16.45.200/20. What is the network address of the subnet it belongs to?
- A. 172.16.32.0
- B. 172.16.40.0
- C. 172.16.44.0
- D. 172.16.45.0
Show the answer
A. 172.16.32.0
A /20 mask is 255.255.240.0, so subnets increase by 16 in the third octet: 0, 16, 32, 48. The value 45 falls in the block that starts at 32, so the network is 172.16.32.0 and it runs to 172.16.47.255. The answer 172.16.45.0 would be right only for a /24.
Broadcast address
3. A workstation has the address 10.20.30.77/27. What is the broadcast address of its subnet?
- A. 10.20.30.63
- B. 10.20.30.79
- C. 10.20.30.127
- D. 10.20.30.95
Show the answer
D. 10.20.30.95
A /27 has a block size of 32, so subnets start at 0, 32, 64 and 96. The value 77 is in the 64 block, which runs from 10.20.30.64 to 10.20.30.95, so the broadcast is 10.20.30.95. The answer 10.20.30.79 would be the broadcast for a /28.
Choosing a mask
4. A network administrator needs one subnet that supports 500 hosts and wants to waste as few addresses as possible. Which subnet mask should be used?
- A. 255.255.255.0
- B. 255.255.252.0
- C. 255.255.254.0
- D. 255.255.255.128
Show the answer
C. 255.255.254.0
A /23 mask, 255.255.254.0, has 9 host bits, which gives 512 addresses and 510 usable hosts. That is the smallest subnet that fits 500. A /24 offers only 254 hosts, and 255.255.252.0 is a /22 with 1,022 hosts, which works but wastes more addresses.
CIDR notation
5. A network diagram lists the campus address block as 10.50.96.0/21. Which subnet mask is the dotted decimal form of /21?
- A. 255.255.248.0
- B. 255.255.240.0
- C. 255.255.252.0
- D. 255.255.224.0
Show the answer
A. 255.255.248.0
A /21 has 16 bits in the first two octets plus 5 bits in the third. Five bits set is 128 + 64 + 32 + 16 + 8, which equals 248, so the mask is 255.255.248.0. The mask 255.255.252.0 is a /22 and 255.255.240.0 is a /20.
Host ranges
6. A printer has the address 192.168.1.100/26. Which of these addresses is a usable host address on the same subnet as the printer?
- A. 192.168.1.62
- B. 192.168.1.63
- C. 192.168.1.126
- D. 192.168.1.130
Show the answer
C. 192.168.1.126
A /26 has a block size of 64, so the printer is in the subnet 192.168.1.64 with usable hosts from .65 to .126 and a broadcast of .127. The address 192.168.1.126 is the last usable host in that subnet. The address 192.168.1.130 belongs to the next subnet, which starts at .128.
Subnet counts
7. A technician divides the network 192.168.4.0/24 into /28 subnets. How many subnets are created, and how many usable hosts does each one have?
- A. 8 subnets with 30 usable hosts each
- B. 16 subnets with 14 usable hosts each
- C. 16 subnets with 16 usable hosts each
- D. 32 subnets with 6 usable hosts each
Show the answer
B. 16 subnets with 14 usable hosts each
Going from /24 to /28 borrows 4 bits, and 2 to the power of 4 is 16 subnets. Each /28 has 4 host bits, which is 16 addresses, minus the network and broadcast addresses for 14 usable hosts. The answer with 16 hosts forgets to subtract those two addresses.
Point-to-point links
8. A network engineer needs a subnet for a link between two routers. The subnet must have exactly two usable host addresses in addition to a network address and a broadcast address. Which prefix length should be used?
- A. /28
- B. /29
- C. /32
- D. /30
Show the answer
D. /30
A /30 has 2 host bits, which gives 4 addresses: one network address, two usable hosts and one broadcast address. A /29 gives 6 usable hosts, which wastes four addresses on a two-router link, and a /32 identifies a single host.
Host ranges
9. An administrator assigns the subnet 192.168.50.0/23 to a wireless network. What is the last usable host address in this subnet?
- A. 192.168.50.254
- B. 192.168.50.255
- C. 192.168.51.254
- D. 192.168.51.255
Show the answer
C. 192.168.51.254
A /23 spans two values in the third octet, so this subnet runs from 192.168.50.0 to 192.168.51.255. The broadcast address is 192.168.51.255, which makes 192.168.51.254 the last usable host. The address 192.168.50.254 would be the last host only if the mask were /24.
VLSM
10. An administrator is dividing 10.0.0.0/24 with VLSM. The subnet 10.0.0.0/25 has already been assigned to a LAN with 100 hosts. Which is the smallest subnet that fits a second LAN with 50 hosts without overlapping the first?
- A. 10.0.0.128/26
- B. 10.0.0.64/26
- C. 10.0.0.128/27
- D. 10.0.0.128/25
Show the answer
A. 10.0.0.128/26
The first LAN uses 10.0.0.0 to 10.0.0.127, so the next subnet must start at 10.0.0.128. A /26 provides 62 usable hosts, which is the smallest size that fits 50. The subnet 10.0.0.64/26 overlaps the first LAN, and a /27 has only 30 usable hosts.
Route summarization
11. A router has routes to 192.168.8.0/24, 192.168.9.0/24, 192.168.10.0/24 and 192.168.11.0/24. Which single summary route covers exactly these four networks?
- A. 192.168.8.0/21
- B. 192.168.8.0/23
- C. 192.168.0.0/20
- D. 192.168.8.0/22
Show the answer
D. 192.168.8.0/22
A /22 has a block size of 4 in the third octet, so 192.168.8.0/22 covers 192.168.8.0 through 192.168.11.255, exactly the four networks. The /21 covers 8 through 15, which includes four networks that are not in the list, and the /23 covers only 8 and 9.
Subnet misconfiguration
12. A PC is configured with the address 10.1.1.50, the mask 255.255.255.224 and the default gateway 10.1.1.65. The PC can reach neighbors on its subnet but nothing beyond it. What is the problem?
- A. The PC is using the broadcast address of its subnet
- B. The default gateway is on a different subnet from the PC
- C. The default gateway is a network address
- D. The subnet mask is not a valid mask
Show the answer
B. The default gateway is on a different subnet from the PC
The mask 255.255.255.224 is a /27 with a block size of 32. The PC at .50 is in the subnet 10.1.1.32, which ends at .63, while the gateway at .65 is in the subnet 10.1.1.64. A host cannot use a gateway outside its own subnet. The address .65 is a normal host address, not a network address.
Usable hosts
13. A company allocates the subnet 172.20.8.0/22 to a campus building. How many usable host addresses does this subnet provide?
- A. 510
- B. 1,024
- C. 1,022
- D. 2,046
Show the answer
C. 1,022
A /22 leaves 10 host bits, and 2 to the power of 10 is 1,024 addresses. Subtracting the network and broadcast addresses leaves 1,022 usable hosts. The answer 510 is the usable count for a /23, and 2,046 is for a /21.
IPv6 addressing
14. A technician needs to write the IPv6 address 2001:0db8:0000:0000:00a0:0000:0000:0001 in its shortest correct form. Which address should the technician write?
- A. 2001:db8::a0:0:0:1
- B. 2001:db8::a0::1
- C. 2001:db8::a:0:0:1
- D. 2001:db80::a0:0:0:1
Show the answer
A. 2001:db8::a0:0:0:1
Leading zeros in each group can be dropped, and one run of all-zero groups can be replaced with a double colon. Using the double colon twice, as in 2001:db8::a0::1, is invalid because the address becomes ambiguous. Trailing zeros cannot be dropped, so 00a0 shortens to a0, not to a.
Choosing a mask
15. A company has the network 192.168.100.0/24 and needs at least 6 subnets, each with at least 25 usable hosts. Which prefix length meets both requirements?
- A. /26
- B. /28
- C. /29
- D. /27
Show the answer
D. /27
A /27 borrows 3 bits for 8 subnets and leaves 5 host bits for 30 usable hosts, so both requirements are met. A /26 gives 62 hosts but only 4 subnets, and a /28 gives 16 subnets but only 14 hosts each.
More Network+ practice questions by topic
Networking Concepts
15 questions, Domain 1 (23% of the exam)
Network Implementation
15 questions, Domain 2 (20% of the exam)
Network Operations
15 questions, Domain 3 (19% of the exam)
Network Security
15 questions, Domain 4 (14% of the exam)
Network Troubleshooting
15 questions, Domain 5 (24% of the exam)
Ports and Protocols
15 questions
Frequently asked questions
- Does the Network+ exam give you a calculator or a subnet chart?
- Do not plan on either one. No subnet chart is supplied, so you should be able to do the math by hand. At a test center you are normally given an erasable note board, and online testing provides an on-screen whiteboard instead of paper. Many people write out their own chart of prefix lengths, block sizes and host counts as soon as the exam starts.
- How many subnetting questions are on the Network+ exam?
- CompTIA does not publish a count for any single topic. Subnetting is part of the IPv4 addressing objective in Domain 1 and also shows up inside troubleshooting scenarios, so you need to be able to work a subnet quickly and accurately.
- What is the fastest way to subnet by hand?
- Use the block size method. Subtract the interesting octet of the mask from 256 to get the block size, then count up in multiples of it to find the network address. The broadcast address is one below the next network, and the usable hosts are everything in between.
Practice Network+ PBQs
Performance-based questions (PBQs) are the hands-on simulations on the real exam. Practice them in our PBQ labs.
More Network+ resources
Want more Network+ Subnetting questions?
Practice by domain in the full question bank, take timed mock exams and see exactly where to focus next.
Get started