Figure 14-8 Numeric Patterns in the Interesting Octet
First, to explain the figure further, look at the top row of the figure. If the engineer uses 255.255.128.0 as the mask, the mask creates two subnets, with subnet IDs 172.16.0.0 and 172.16.128.0. If the engineer uses mask 255.255.192.0, the mask creates four subnets, with subnet IDs 172.16.0.0, 172.16.64.0, 172.16.128.0, and 172.16.192.0. If you take the time to look at the figure, the patterns become obvious: Mask: 255.255.128.0, Pattern: multiples of 128 Mask: 255.255.192.0, Pattern: multiples of 64 Mask: 255.255.224.0, Pattern: multiples of 32 Mask: 255.255.240.0, Pattern: multiples of 16 To find the subnet ID, you just need a way to figure out what the pattern is. If you start with an IP address and mask, just find the subnet ID closest to the IP address, without going over, as discussed in the next section.
Finding the Subnet ID: Difficult Masks The following written process lists all the steps for finding the subnet ID using only decimal math. This process adds to the earlier process used with easy masks. For each octet, follow these steps: