Subnet Randomizer

Sharpen your subnetting skills by solving randomly generated CIDR challenges. Each round presents a random IP in CIDR notation — compute the network address, broadcast address, subnet mask, usable host range, and total hosts from memory.

Select a difficulty and click Generate CIDR to start.

How the Subnet Randomizer Works

The Subnet Randomizer is a practice tool designed to help network engineers, system administrators, and CCNA candidates build fluency in IPv4 subnetting. Instead of passively reading a table or entering a CIDR into a calculator, you are presented with a random IP address in CIDR notation — such as 172.24.83.194/23 — and asked to derive six key properties of that subnet entirely from mental calculation.

The six fields you must compute are the network address (the first address in the block), the broadcast address (the last address used for one-to-all communication), the subnet mask (the 32-bit mask that separates the network and host portions), the first usable host address (network address plus one), the last usable host address (broadcast address minus one), and the total number of addresses in the subnet (2 to the power of 32 minus the prefix length). Together, these six values cover the essential information needed for any real-world subnetting task — from configuring router interfaces to designing VPC subnets in AWS, Azure, or Google Cloud.

The tool offers three difficulty levels — Easy (/24 through /28), Medium (/20 through /27), and Hard (/16 through /30) — letting you progressively challenge yourself as your skills improve. At the Easy level the host octet boundaries are simpler to recognize, while Hard mode includes prefix lengths like /17 or /23 that require careful binary reasoning. Your score is tracked across each session so you can see how your accuracy improves with practice.

For each generated CIDR, type your answers into the six input fields, then click Show Answer to check your work. Each field is marked correct or incorrect, and the correct values are revealed so you can learn from any mistakes. This self-test format is more effective than multiple-choice quizzes because it requires you to produce the answer from scratch — the same way you would in a real configuration or exam scenario. Use the Generate New button to get a fresh challenge at any time.

Consistent practice with random CIDR blocks is one of the most effective ways to internalize subnetting. If you find yourself struggling with a particular prefix length, switch to an easier difficulty and work your way back up. For reference tables covering all prefixes from /0 to /32, visit the Subnetting Cheat Sheet, or use the Subnet Calculator to explore any subnet in detail.