Given an IP Address and Mask What Are the Assignable IP Addresses in That Network Subnet

CCNAs deal with the question, "What IP addresses are in this subnet?" on a regular basis. This section describes how to answer this question if you know how to derive the subnet and broadcast addresses. Simply put, the valid IP addresses that are available for assignment in a subnet are those numerically between the subnet number and the broadcast address.
There is little else to be considered. Certainly, no decimal or binary algorithm needs to be considered for such a simple concept, right? Table 5-19 shows some familiar IP addresses and the corresponding IP addresses in the same subnet.
Table 5-19 Assignable Addresses
|
Subnet Number |
Subnet Mask |
Broadcast Address |
Range of Assignable Addresses |
|
130.4.100.0 |
130.4.103.255 |
130.4.100.1 to 130.4.103.254 |
|
|
199.1.1.0 |
255.255.255.224 |
199.1.1.31 |
199.1.1.1 to 199.1.1.30 |
|
172.100.200.0 |
172.100.201.255 |
172.100.200.1 to 172.100.201.254 |
|
|
17.9.44.64 |
255.255.255.192 |
17.9.44.127 |
17.9.44.65 to 17.9.44.126 |
The ranges seem obvious. However, look at the 172.100.200.0 subnet. How many assignable IP addresses are in that subnet, and what are those addresses? Is 172.100.200.255 valid? What about 172.100.201.0? In fact, both are valid IP addresses when using 255.255.254.0 as the
mask. The rule is that the subnet numbers (and also the broadcast addresses) are not usable as an IP address. Otherwise, the addresses are assignable to an interface.
Continue reading here: CIDR Private Addressing and NAT
Was this article helpful?
Readers' Questions
-
Steven2 months ago
- Reply
-
patrick8 months ago
- Reply
-
teppo1 year ago
- Reply