Subnetting Practice: 25 Subnetting Questions
August 26, 2026 · 1.4 MB
Appendix A of an unnamed networking textbook: 25 IP subnetting practice questions with fully worked answers, using both binary maths and a shortcut "subnet chart" method.
Overview
Working out subnets by hand is a core skill for network engineers and a staple of certification exams. This 50-page appendix from a networking textbook sets 25 practice questions and works through every answer in detail. The source book is not named in the file, but the appendix refers readers back to its Chapter 12, "IP Addressing and Subnetting", for the underlying explanation.
The Questions
Each question gives an IP address and subnet mask and asks the reader to find:
- The size of the network, subnet and host parts of the address
- The number of hosts per subnet and the number of subnets in the network
- The subnet number and broadcast address
- The range of valid IP addresses in the subnet
The questions are arranged by address class. The first eight use Class A addresses in the 10.x.x.x range, the next eight use Class B addresses in the 172.31.x.x range, and a further group uses Class C addresses in the 192.168.x.x range. The last few mix classes, ending with a Class A address and its default mask. Masks range from simple ones, such as 255.255.255.0, to "tricky" ones, such as 255.255.240.0, where the boundary between subnet and host falls inside an octet.
The Method
Before the answers, the appendix sets out a four-step process. First, identify the structure of the address: the network part from Class A, B and C rules, the host part from the number of binary zeros in the mask, and the subnet part as whatever is left of the 32 bits. The number of subnets and of hosts per subnet are each calculated as two to the power of the relevant number of bits, minus two. Second, build a subnet chart with the address and mask in its first rows. Third, derive the subnet number and first valid address. Fourth, derive the broadcast address and last valid address.
For difficult masks, the appendix uses a "magic number" shortcut: subtracting the mask's value in the "interesting" octet from 256 to find the subnet's value in that octet without converting everything to binary. Adding the magic number to the subnet's value and subtracting one gives the broadcast address's value in that octet.
The Answers
Every answer follows the same pattern. A table first sets out the sizes of each part of the address, with a column of rules to remember. A second table shows the binary calculation: a Boolean AND of the address and mask gives the subnet number, and changing all the host bits to ones gives the broadcast address. Adding one to the subnet number and subtracting one from the broadcast address gives the first and last valid addresses. A final table repeats the calculation using the subnet chart, so readers can compare the long method with the quick one. Some answers also list neighbouring subnets.
The appendix flags several answers where the result is a "zero subnet", one whose subnet bits are all zero, and advises that such subnets should be avoided unless the network is running out of subnets.
Why It Matters
The appendix is a self-contained drill for mastering subnet calculations, with each step shown in full. Its rules, such as subtracting two from the subnet count and avoiding the zero subnet, reflect classful conventions of the time the book was written.
