Subnetting Class C Addresses
Subnetting Class C Addresses
There are many different ways to subnet a network. The right way is the way
that works best for you. First you will learn to use the binary method, and
then we’ll look at an easier way to do the same thing.
In a Class C address, only 8 bits is available for defining the hosts.
Remember that subnet bits start at the left and go to the right, without skip-
ping bits. This means that subnet masks can be
10000000=128
11000000=192
11100000=224
11110000=240
11111000=248
11111100=252
11111110=254
Now, the RFCs state that you cannot have only one bit for subnetting,
since that would mean that the bit would always be either off or on, which
would be illegal. So, the first subnet mask you can legally use is 192, and the
last one is 252, since you need at least two bits for defining hosts.
Table 3.5 shows the 128 subnet, valid host range, and broadcast address.
That wasn’t all that hard. Hopefully you understood what I was trying to
show you. However, the example I presented only used two subnet bits.
What if you had to subnet using 9, 10, or even 20 subnet bits? Let’s learn an
alternate method of subnetting that makes it easier to subnet larger numbers.
the binary numbers. In this example, you will subnet the network address
192.168.10.0 and subnet mask 255.255.255.192.
192.168.10.0=Network address
255.255.255.192=Subnet mask
Now, answer the five questions:
1. How many subnets? Since 192 is two bits on (11000000), the answer
would be 22–2=2. (The minus 2 is the subnet bits all on or all off,
which is not valid by default.)
2. How many hosts per subnet? We have 6 host bits off (11000000), so
the equation would be 26–2=62 hosts.
3. What are the valid subnets? 256–192=64, which is the first subnet and
our base number or variable. Keep adding the variable to itself until
you reach the subnet mask. 64+64=128. 128+64=192, which is
invalid because it is the subnet mask (all subnet bits turned on). Our
two valid subnets are, then, 64 and 128.
4. What are the valid hosts? These are the numbers between the subnets.
The easiest way to find the hosts is to write out the subnet address and
the broadcast address. This way the valid hosts are obvious.
5. What is the broadcast address for each subnet? The number right
before the next subnet is all host bits turned on and is the broadcast
address. Table 3.6 shows the 64 and 128 subnets, the valid host ranges
of each, and the broadcast address of both subnets.
Notice that we came up with the same answers as when we did it the
binary way. This is a much easier way to do it because you never have to
do any binary-to-decimal conversions. However, you might be thinking
that it is not easier than the first method I showed you. For the first
subnet with only two subnet bits, you’re right, it isn’t that much easier.
Remember, we’re going for the big one: being able to subnet in your head.
You need to practice this approach to be able to perform subnetting in
your head.
To answer questions 4 and 5, first just write out the subnets, then
write out the broadcast addresses, which is the number right before the
next sub- net. Last, fill in the host addresses. Table 3.7 shows all the
subnets for the
255.255.255.224 Class C subnet mask.