AP Networking • IPv4 Subnetting • Practice

Subnetting Practice Questions

Practice CIDR, masks, block sizes, network and broadcast addresses, usable ranges, host counts, same-subnet decisions, gateway logic, and troubleshooting with fully worked examples.

Independent AP Networking resource • Updated 2026-09-13 • Includes 24 free digital flashcards
Subnetting rule: calculate the boundary before trusting what an address looks like.
Practice with Flashcards
Practice method

Write the boundary before choosing an answer

Subnetting becomes much more reliable when every problem uses the same sequence: convert the prefix to a mask if needed, identify the changing octet, calculate the block size, locate the network boundary, then derive broadcast and usable range. This method also transfers directly into troubleshooting because the same math determines whether a gateway or peer is local.

Subnetting workflow: Prefix → Mask → Block Size → Network Boundary → Broadcast → Usable Range → Local/Remote Decision.
Quick reference

High-value prefixes to know cold

PrefixMaskTotal addressesTraditional usableBlock size
/24255.255.255.0256254256
/25255.255.255.128128126128
/26255.255.255.192646264
/27255.255.255.224323032
/28255.255.255.240161416
/29255.255.255.248868
/30255.255.255.252424

Swipe horizontally to see the CIDR table.

Block-size shortcut

Use 256 minus the mask octet

For a /26, the last mask octet is 192, so the block size is 256 − 192 = 64. That produces boundaries at 0, 64, 128, and 192. For a /27, 256 − 224 = 32, giving boundaries at 0, 32, 64, 96, 128, 160, 192, and 224.

/26: 256 - 192 = 64 /27: 256 - 224 = 32 /28: 256 - 240 = 16
Problem 1

Find the network and broadcast for 192.168.60.142/26

Work it in four steps

Mask: 255.255.255.192
Block size: 64
Boundaries: .0, .64, .128, .192
Host .142: falls inside .128–.191

Answer: Network 192.168.60.128 · Broadcast 192.168.60.191 · Usable 192.168.60.129–192.168.60.190.
Problem 2

Are 10.10.5.62/27 and 10.10.5.65/27 in the same subnet?

A /27 has a block size of 32. Address .62 is inside .32–.63. Address .65 is inside .64–.95.

Answer: No. 10.10.5.62 is in 10.10.5.32/27, while 10.10.5.65 is in 10.10.5.64/27.
Troubleshooting implication: without routing, those two hosts are not local to each other under /27.
Problem 3

How many usable hosts does /28 provide?

/28 leaves 4 host bits. 24 = 16 total addresses. Under traditional subnetting, subtract network and broadcast.

Answer: 14 traditional usable host addresses.
Problem 4

What prefix supports at least 50 traditional hosts?

Five host bits give 25 − 2 = 30 usable addresses, which is too small. Six host bits give 26 − 2 = 62 usable addresses.

Answer: /26.
Problem 5

Find the valid host range for 172.16.75.200/20

/20 equals 255.255.240.0. The changing octet is the third octet, and 256 − 240 = 16. Third-octet boundaries are 0, 16, 32, 48, 64, 80, and so on. The value 75 sits inside 64–79.

Answer: Network 172.16.64.0 · Broadcast 172.16.79.255 · Usable 172.16.64.1–172.16.79.254.
Problem 6

Client 192.168.100.130/26 uses gateway 192.168.100.1

.130 belongs to the 192.168.100.128/26 block. The usable range is .129–.190. Gateway .1 belongs to the 192.168.100.0/26 block.

Answer: The gateway is outside the client's local /26 and is not normally reachable as its first hop.
Problem 7

Find network, broadcast, and usable range for 192.168.1.221/27

/27 has block size 32. Boundaries around .221 are .192 and .224.

Answer: Network 192.168.1.192 · Broadcast 192.168.1.223 · Usable .193–.222.
Problem 8

Find network and last usable host for 10.40.12.70/28

/28 has block size 16. .70 lies in the .64–.79 block.

Answer: Network 10.40.12.64 · Broadcast .79 · Last usable 10.40.12.78.
Problem 9

Find network and broadcast for 172.20.201.8/22

/22 equals 255.255.252.0, so the third-octet block size is 4. Third-octet boundaries around 201 are 200 and 204.

Answer: Network 172.20.200.0 · Broadcast 172.20.203.255.
Problem 10

Which prefix supports at least 100 traditional hosts?

Six host bits give 62 usable, not enough. Seven host bits give 126 usable.

Answer: /25.
Problem 11

Are 10.1.1.127/25 and 10.1.1.128/25 local to each other?

/25 splits the last octet into .0–.127 and .128–.255.

Answer: No. .127 is the broadcast address of 10.1.1.0/25, while .128 is the network address of 10.1.1.128/25.
Problem 12

Is 192.168.8.95/27 a valid host?

192.168.8.95 is the last address in the 192.168.8.64/27 block.

Answer: No. It is the broadcast address for 192.168.8.64/27.
Problem 13

Is 192.168.8.94/27 a valid host with gateway 192.168.8.65?

The subnet is 192.168.8.64/27, with usable addresses .65 through .94.

Answer: Yes. Both .94 and gateway .65 are valid usable addresses in the same /27.
Important: do not invent an error just because .94 “looks high.” Calculate the range.
Same-subnet logic

Subnetting is really a local-versus-remote decision

Hosts do not use visual similarity to decide whether another address is local. They apply the prefix. Two addresses that differ by only one may still sit on opposite sides of a subnet boundary. Two addresses that look far apart may still be local under a broader prefix.

★ Addressing Practice • Subnetting Practice Questions

A five-minute warm-up for Subnetting Practice Questions

Tomorrow’s opening question can pick up where this page leaves off: have students explain where the addresses come from and what they would check when a device cannot connect. The 300 Bell Ringers give you short questions and teacher answers you can use without preparing a new starter each morning.

300 AP Networking Bell Ringers
$74.99
BUY TEACHER PACK → See what is included in the 300 Bell Ringers →
Instant Access • Full-Year Teacher Resource

Same subnet

Attempt direct local delivery.

Different subnet

Send toward the default gateway.

Wrong mask

Can make the host choose the wrong behavior.

Troubleshooting trap

An overly broad mask can make a remote host look local

Client: 10.20.30.44 Configured: /16 Intended: /24 Destination: 10.20.40.50

With /16, the client treats 10.20.40.50 as local and may ARP for it instead of using the gateway. The route table upstream is not yet the first problem.

Troubleshooting trap

An overly narrow mask can make a local host look remote

Client: 10.20.30.44/27 Peer: 10.20.30.70 Intended: /24

The /27 configuration places those addresses in different local subnets even though the design intended one /24. The client can send traffic toward the gateway unnecessarily or fail depending on the topology.

Addressing & Subnetting Lab • 120 Missions

Let students try Subnetting Practice Questions for themselves

Reading the explanation is a start. In the browser simulator, students work through a broken network, choose what to test and see whether their fix worked. It gives them another chance to use what they learned about Subnetting Practice Questions.

AP Networking Browser Troubleshooting Simulator
$29.99
120 Missions • 60 Failure Patterns • Offline Copy
GET THE SIMULATOR → See all 120 missions & features
CIDR estimation

Work backward from host requirement

Need at leastSmallest traditional subnetUsable hosts
2/302
6/296
14/2814
30/2730
50/2662
100/25126
200/24254

Swipe horizontally to see the host-capacity table.

Mistake pattern 1

Do not subtract 2 before finding total addresses

The clean sequence is: determine host bits, calculate 2host bits total addresses, then apply the traditional network/broadcast subtraction when the problem expects usable host count.

Addressing Exam Practice • Subnetting Practice Questions

Check whether Subnetting Practice Questions has really stuck

Once students have worked through this topic, give them questions mixed in with the rest of the course. The Exam Prep Vault includes practice exams, multiple-choice questions and artifact labs so they cannot rely on a chapter heading to tell them what to do.

AP Networking Complete Exam Prep Vault
$39.99
GET THE EXAM PREP VAULT → See the Exam Prep Vault contents →
4 Practice Exams • 320 MCQs • 60 Artifact Labs
Mistake pattern 2

Do not confuse block size with usable host count

A /27 block size is 32 addresses, but traditional usable host count is 30. Those are different quantities.

Mistake pattern 3

Do not assume the first or last address is a host

In traditional IPv4 subnetting, the first address is the network address and the last is the broadcast address. That is why 10.1.1.127/25 and 10.1.1.128/25 sit exactly on opposite boundaries.

Premium Routing Feedback

Spend less time marking explanations about Subnetting Practice Questions

When students explain their answer, it takes more than a right-or-wrong check to see what they understand. The Grading Copilot helps you review how they used the clues, where their explanation falls short and what feedback to give next. You make the final grading decision.

AP Networking Artifact Analysis Grading Copilot
$49.99
8 Criteria • 5 Task Modes • Offline Premium Copy
GET THE GRADING COPILOT → See the free Copilot preview
Mistake pattern 4

Do not blame routing before checking the client's own subnet math

A wrong prefix can change the traffic path before any router receives the packet. Always verify the host's local/remote decision first when gateway or peer behavior looks strange.

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach Subnetting Practice Questions as part of a planned school year

This page gives you one topic. The 180-Day Teacher Curriculum puts it into a full course plan, with daily teaching notes, student activities and checks for understanding. Use it when you need to know what comes before this lesson and what to teach next.

AP Networking Complete 180-Day Teacher Curriculum
$199.99
180 Lessons • 180 Daily Simulators • 36 Teaching Weeks
GET THE 180-DAY CURRICULUM → See 3 free curriculum examples
Speed drill

Five questions to solve without scrolling back

Study rule: write prefix/mask, block size, and boundary before checking your result.
Exam transfer

Strong subnetting answers show the intermediate boundary

Instead of writing only “192.168.60.128,” show why: “/26 = 255.255.255.192, block size 64, boundaries .0/.64/.128/.192, so .142 lies in .128–.191.” That makes the reasoning auditable and prevents lucky guessing.

Answer pattern: prefix/mask → block size → boundary → network/broadcast/range → troubleshooting implication if relevant.
Free digital flashcards

24 Subnetting Practice digital flashcards

Practice CIDR masks, block sizes, host counts, network and broadcast addresses, usable ranges, same-subnet decisions, gateway logic, and troubleshooting implications.

All subnetting cards
Click or press Enter/Space to reveal.
Calculate the boundary before trusting your intuition.
0 seen•24 cards