About this interactive
Subnetting moves the line between the network and host portions of an address to the right. Each bit you borrow from the host side becomes a network bit, so borrowing b bits gives 2^b subnets: one bit gives 2, eight bits give 256. The bits left on the host side set the size of each subnet: h host bits give 2^h addresses, and two of them, the all-zeros network address and the all-ones broadcast address, are not given to hosts, so 2^h - 2 are usable.
The class default is where you start counting. Class A's default is /8, Class B's /16 and Class C's /24, so 10.0.0.0 subnetted to /24 has borrowed 16 bits and has 256 addresses (254 usable) in each of its 65,536 subnets. 172.16.0.0 with one bit borrowed is /17: 2 subnets of 32,768 addresses, 32,766 usable. Each extra bit borrowed doubles the subnets and halves the addresses in each one.
This set stops at /30, the smallest subnet with two usable hosts. A /31 is the special case RFC 3021 allows on point-to-point links, where both of its two addresses are usable, and a /32 is a single host; neither follows the minus-two rule. Type counts in digits (commas are fine). Anything you miss shows the answer and how to work it out. Seven of the twenty-one questions are drawn each run.
About TechKnowSurge
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →