About this interactive
Fixed-length subnetting gives every subnet the same size, so a two-host router link gets as many addresses as the biggest LAN. Variable-length subnet masking (VLSM) sizes each subnet to its own network. The method is the same every time. Sort the networks from most hosts to fewest. Give each the smallest block whose usable addresses hold it: the block size less two, for the network and broadcast addresses. Then lay the blocks end to end from the start of the space.
Take 192.168.12.0/24 with LANs of 70 and 20 hosts and one router link. 70 hosts need 72 addresses, so a /25: 192.168.12.0 to .127. 20 hosts fit a /27, 32 addresses with 30 usable, which starts at .128 and ends at .159. The link needs two usable addresses, a /30, from .160 to .163. Largest first matters because a block can only start on a multiple of its own size; put the small blocks first and the big ones have to skip ahead, stranding the addresses in between. Nothing overlaps, and .164 to .255 are free for later.
Type addresses in dotted decimal and counts in digits. Anything you miss shows the answer and how to work it out. Seven of the twenty-five 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 →