TechKnowSurge
Cisco CCNA 1.6 CompTIA Network+ 1.7 Cisco CCST Networking 2.2 CompTIA A+ Core 1 2.6
InteractiveNetworkFree

Subnetting Challenge

Work a subnetting requirement end to end — prefix length, custom mask, subnet count, and the network, broadcast and usable range of a given subnet.

Complete this interactive to capture a CTF flag worth 5 points.

About this interactive

Subnetting is the one piece of networking arithmetic that no amount of reading replaces, because every step depends on the one before it and a single wrong bit moves every address that follows. This drill takes a requirement — a network, and either a host count or a network count — and walks the derivation one typed answer at a time: how many host bits the requirement needs, what prefix length that leaves, what that prefix looks like in dotted decimal, how many subnets the borrowed bits create, how many usable hosts survive after the network and broadcast addresses are reserved, and what increment separates one network address from the next. Then it asks for a specific subnet by number and takes its network address, broadcast address, and first and last usable hosts. The problems start on Class C in the last octet, move to Class B where the increment lives in the third octet and subtracting one has to borrow across a boundary, and finish on Class A at 4,096 subnets. Every answer is typed and graded exactly, and a miss shows the derivation rather than only the number.

What you'll learn

Aligned to

Cisco CCNA
1.6 Configure and verify IPv4 addressing and subnetting
CompTIA Network+
1.7 Given a scenario, use appropriate IPv4 network addressing
Cisco CCST Networking
2.2 Identify IPv4 addresses and subnet formats
CompTIA A+ Core 1
2.6 Compare and contrast common network configuration concepts

Key terms

Subnet
A logical subdivision of an IP network, used to organize and segment network traffic.
Subnet Mask
A 32-bit number that divides an IP address into network and host portions.
Prefix Length
The number of consecutive 1-bits in a subnet mask, written after a slash (e.g., /24), that defines how many bits of an IP address represent the network portion versus the host portion. A /24 prefix means the first 24 bits identify the network, leaving 8 bits for host addresses.
Default Subnet Mask
A subnet mask that draws the network/host boundary at the classful boundary of an IP address class, such as 255.0.0.0 for a Class A address.
Custom Subnet Mask
A subnet mask that draws the network/host boundary at a point other than the classful boundary, allowing flexible division of network and host bits.
Borrowed Bits
Host bits reallocated to the network portion of a subnet mask to create additional subnets, reducing the number of available hosts per subnet.
Host Bits
The portion of an IPv4 address that identifies individual devices within a network segment, as determined by the subnet mask.
Host Capacity
The maximum number of usable host addresses per subnet, calculated as 2 raised to the power of remaining host bits minus 2 (reserving the network and broadcast addresses).
Network Address
The first address in an IP network range that identifies the network itself and cannot be assigned to a host. It is formed when all host bits are set to zero.
Broadcast Address
The last address in an IP subnet range, formed when all host bits are set to one, used to send a single packet to every device on that network simultaneously.
Usable Host Range
The set of IP addresses within a subnet that can actually be assigned to network devices, spanning from one address above the network address to one address below the broadcast address. For example, in the 192.168.1.0/24 network, the usable host range is 192.168.1.1 through 192.168.1.254.
Usable Hosts
The number of valid host addresses within a subnet, calculated by subtracting two from the total host count to exclude the network and broadcast addresses.
Classful Addressing
An early IPv4 addressing scheme that divided the address space into fixed classes (A, B, and C for hosts; D for multicast; E reserved) based on the leading bits of the address, with each class defining a fixed boundary between the network and host portions. Classful addressing was replaced by CIDR because it wasted large blocks of address space.
Address Class
A categorization system for IPv4 addresses divided into classes (A, B, C, D, E) determined by the value of the first octet, which defines the network and host portions of the address.
Octet
One of the four 8-bit sections of an IPv4 address, each separated by a dot in dotted decimal notation and representing a decimal value from 0 to 255. For example, in 192.168.1.1, the four octets are 192, 168, 1, and 1.
Subnet Index
The sequential position number of a subnet within a list of subnets, used to calculate that subnet's addresses without enumerating all preceding subnets.

Topics

Interactive Calculation Subnetting Ipv4 Addressing

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 →