background image
IP Addressing and Subnetting 259
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.
Given a Network Number and a Static Subnet Mask, What Are the Valid Subnet Numbers?
One of the reasons you find so many different slants on IP addressing in this chapter is that the
CCNA exam questions you about IP in many different ways. The question in the heading of this
section is unlikely to be the exact question, however. You should expect to see something like,
"Which of the following are valid subnets of network X, using mask Y?," followed by the
suggested answers. If you can figure out all the subnets of that network, you should be able to
answer the multiple-choice exam question easily.
A few additional facts will help you in thinking about the possible subnet numbers:
·
All subnet numbers have all binary 0s in the host part of the subnet number.
·
All subnet numbers of the same Class A, B, or C network have identical values in the
network part of the subnet numbers.
·
All subnet numbers of the same Class A, B, or C network have different values in the
subnet part of the subnet numbers.
In other words, the only thing that is different about two different subnets of the same network
is the subnet part of the subnet number. The network and host parts are identical. An example
helps in this case. Examine Figure 5-23, which shows a familiar network with six subnets.
Figure 5-23 shows six subnets of network 150.150.0.0. Subnet mask 255.255.255.0 is used,
implying two network octets, one subnet octet, and one host octet. The subnets already used in
this example are as follows:
·
150.150.1.0
·
150.150.2.0
·
150.150.3.0
·
150.150.4.0
·
150.150.5.0
·
150.150.6.0
As long as you can find another value not already used in the third byte, you can find another
subnet number. In fact, simply counting sequentially, subnet numbers continue--150.150.7.0,
150.150.8.0, and so on, up through 150.150.254.0. That gives a total of 254 subnets, assuming
that the zero and broadcast subnets are not used.
ch05.fm Page 259 Monday, March 20, 2000 5:06 PM