About this interactive
Classful addressing splits an IPv4 address into a network part and a host part at an octet boundary, and the first octet says where. Class A starts with the bit 0, so its first octet runs from 0 to 127 (0 and 127 are reserved, leaving 1 to 126); its first octet is network and the last three are host. Class B starts with 10, first octet 128 to 191, two octets of network and two of host. Class C starts with 110, first octet 192 to 223, three octets of network and one of host. Class D (1110, 224 to 239) is multicast and Class E (1111, 240 to 255) is experimental; neither has a network and host split.
Once you know the class, the rest is the same three moves. Set every host octet to 0: that is the network address, the first address of the range. Set every host octet to 255: that is the broadcast address, the last address. The usable hosts are everything between, from the network address plus one to the broadcast address minus one. 172.18.254.37 is Class B, so its network is 172.18.0.0, its broadcast 172.18.255.255, and its usable range 172.18.0.1 to 172.18.255.254.
Counting works on bits. Host bits give the addresses in a network, 2 to the power of the host bits, minus 2 for the network and broadcast addresses: 254 for Class C, 65,534 for Class B, 16,777,214 for Class A. The network bits left after the leading bits give the number of networks: 2^7 = 128 for Class A, 2^14 = 16,384 for Class B, 2^21 = 2,097,152 for Class C.
Assume classful boundaries throughout: no subnetting yet. Type addresses in dotted decimal and counts in digits (commas are fine). 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 →