Subnet Tools

Subnetting Practice

Unlimited subnetting questions. Type your answer, check it, then see the worked solution.

Question types (8 of 8)
Score: 0 / 0Streak: 0Best streak: 0

Your best streak is saved in this browser only — it won't sync to other devices.

Worked example

A typical question: which subnet is 172.16.45.200/20 in?

A /20 mask is 255.255.240.0, so the block size in the third octet is 16. 45 falls in the block 32 to 47: network 172.16.32.0, broadcast 172.16.47.255, and 4,094 usable hosts.

How it works

Each question uses a random IP address and prefix in the range for the difficulty you pick. Answers come from the same math as the Subnet Calculator on RouteLearn.net, and the worked solution shows the block size method step by step. Everything runs in your browser.

Learn the theory

FAQ

What is the block size method?
For a mask with a partly filled octet, subtract that octet from 256. This gives the block size: for /26, 256 − 192 = 64, so the last-octet blocks start at 0, 64, 128 and 192. Choose the block containing the IP's octet: its first and last values give the network and broadcast octet. Keep the earlier network octets; later host octets become 0 for the network or 255 for the broadcast. For /8, /16 and /24 there is no partly filled octet. Keep the first 1, 2 or 3 octets respectively, then set the host octets to 0 for the network or 255 for the broadcast. For example, 192.0.2.77/24 has network 192.0.2.0 and broadcast 192.0.2.255.
Why do /31 and /32 never come up?
They're special cases. A /31 has 2 usable addresses on point-to-point links (RFC 3021) and a /32 is a single host. The drills stick to /8 through /30, where the usual network/broadcast rules apply. The Subnet Calculator handles /31 and /32 if you want to see them.
How should I enter answers?
Addresses and masks in dotted-decimal (e.g. 255.255.255.192). Host counts as a number; commas are fine. For the prefix question you can type 26 or /26.
Is my progress saved?
Your best streak is saved in this browser on this device only. It won't follow you to another device or browser, and clearing your browser's site data resets it. Nothing is sent to the RouteLearn server.

Related tools