BLOCKING / INCREMENTING SHORTCUT | |
In the previous example, we had the following situation in decimal form: Network 131.107. y. z (Class B address) We found previously that the possible range of one of the subnets is: 131.107.32.1 through 131.107.63.254
SHORTCUT METHOD To arrive at that result, we worked with binary bits. Next, we will use a shortcut to arrive at the same answer using only decimal numbers. This shortcut avoids the use of binary numbers. Step 1 Take the rightmost non-zero number of the subnet mask (224). Subtract this number from 256. (256 - 224 = 32) This is the increment. Step 2 Append the increment to your network address. (131.107. 32. z) Step 3 Repeatedly add the increment (32) to the result in step 2 until you reach the original rightmost non-zero number of the subnet mask (224). 131.107. 64.z = 131.107. ( 32 + 32) .z 131.107.224.z but we do not accept this one because 224 corresponds to the case of a subnet ID with all 1's. (224 = 11100000) Step 4 Write out the smallest and largest IP addresses for your subnets. For our first subnet, we have 131.107.32.z. The smallest possible value is 131.107.32.1 because our host ID cannot have all 0's. The largest value on this subnet must be smaller than the start of the next subnet, which is 131.107.64.1. In addition, our host ID cannot have all 1's. So we eliminate 131.107.63.255 as a valid IP address. The largest value for an IP address on this subnet would be 131.107.63.254.** ** Note: 11111111 . 11111111 . 11100000 . 00000000 (subnet mask 255.255.224.0)
Using the above logic, we find these to be range of values for all 6 subnets: Subnet 1: 131.107. 32. 1 through 131.107. 63.254 Example 2 (Class A IP addresses) Network : 10. X. y. z
What are the ranges of IP addresses for all subnets? 240 is the rightmost nonzero number in the subnet mask. 256 - 240 = 16 (increment) Append the increment to the network address until you reach 240. 10. 16.0.z
Subnet 1: 10. 16. 0. 1 through 10.31.255.254 **
** Note: 11111111 . 11110000 . 00000000 . 00000000 (subnet mask 255.240.0.0) is the largest possible acceptable IP address on the same subnet that is less than: 00001010 . 00100000 . 00000000 . 00000001 (10.32. 0. 1)
|