0

SUBNNETTING | How to Subnet a Network? | PART 3 | IP Addressing to IP Subnetting


 How to Subnet a Network? | PART 3 | IP Addressing to IP Subnetting



Subnetting can be useful in a variety of ways, including simplifying network administration, enabling you to use different physical media such as Ethernet and FDDI, and adding a layer of security to your network. The most common use of subnetting is to control network traffic.

Subnetting is done by borrowing host bits and using them as network bits. To begin, let's look at our ABC company network address (192.168.1.0) and its subnet mask (255.255.255.0) as expressed in binary. Notice that the address bits that have corresponding mask bits set to 1 represent the network address. Address bits that have corresponding mask bits set to 0 represent the individual host address.


Network address
11000000
10101000
00000001
00000000
Subnet mask
11111111
11111111
11111111
00000000

With this address, the bits from octets 1, 2, and 3 are used to identify the network portion of the address. However, we could subnet our network by borrowing bits from the fourth octet. To do so, we must take bits consecutively from left to right. In the following table, we borrow the bit with a value of 128.. 

Network address
11000000
10101000
00000001
00000000
Subnet mask
11111111
11111111
11111111
10000000




This changes our subnet mask. Instead of 255.255.255.0, it is now 255.255.255.128. The more host bits you use for subnets, the more subnets you have available. However, as more subnets are created, the less host addresses are available per subnet. In the following table, we borrow both the 128 and the 64 bit. We now have only 6 bits left for host addresses, and our mask is now 255.255.255.192.

Network address
11000000
10101000
00000001
00000000
Subnet mask
11111111
11111111
11111111
11000000
Notice also that we use the fourth octet to subnet a Class C network. Because this document and the Subnet game refer only to Class C networks, the remainder of this document will focus only on the fourth octet. Once you understand IP subnetting for Class C networks, it will be much easier for you to understand IP subnetting for any network.

So, back to our fourth octet, exactly what network and host addresses can we create by borrowing these two bits and thus applying this .192 mask?

Network address
11000000
10101000
00000001
00000000
Subnet mask
11111111
11111111
11111111
11000000

Let's look first at the subnets. We have two digits with which to create subnets.

Network address
11000000
10101000
00000001
00000000
Subnet mask
11111111
11111111
11111111
11000000

Looking at the bit value chart, it's easy to see that those two digits can be . . .

00, which equals 0


Bit
0
0
0
0
0
0
0
0
Bit value
128
64
32
16
8
4
2
1
01, which equals 64


Bit
0
1
0
0
0
0
0
0
Bit value
128
64
32
16
8
4
2
1
10, which equals 128

Bit
1
0
0
0
0
0
0
0
Bit value
128
64
32
16
8
4
2
1
or 11, which equals 192

Bit
1
1
0
0
0
0
0
0
Bit value
128
64
32
16
8
4
2
1





So we have created the following subnets:

192.168.1.0

192.168.1.64

192.168.1.128

192.168.1.192

That means that these numbers (0, 64, 128, and 192) can no longer be host addresses because they are now subnet addresses. Each subnet, like any network, must have a broadcast address as well. The broadcast address is the last address on the network, so on our first subnet, 192.168.1.0, available host addresses are 192.168.1.1 through 192.168.1.62. The 192.168.1.63 is the broadcast address and 192.168.1.64 is the address of the next subnet. Remember that before we subnetted our network, we could use all 8 bits of the 4th octet for host addresses. That gave us 254 host addresses. We now have 62 for each of our 4 subnets, or 248 total. The following table shows the complete results of borrowing two host bits to subnet our
Class C network.






0

SUBNNETTING | How to Subnet a Network? | PART 2 | Binary Numbers



How to Subnet a Network? | PART 2 | Binary  Numbers



To understand network addresses, we should take a moment to consider the binary number system. Since all electronic devices only understand binary numbers, all network addresses are actually made up of binary digits called bits. An IP address consists of 32 bits, broken into four parts called octets. Each octet equals 8 bits. Our sample network address of 192.168.1.0, looks like this in binary.

11000000
10101000
00000001
00000000
192
168
1
0




But how does 11000000 equate to 192? How does 10101000 equate to 168? Here's how .

            A bit can have only two possible values: on, which is represented by a 1, or off, which is represented by a 0.. To represent the decimal number 0, as in the last octet above, all 8 bits are turned off. When turned on, each bit has a value. Let's take a look at one 8-bit octet , since each octet contains a distinct number. The values are as follow:
Bit
1
1
1
1
1
1
1
1
Bit value
128
64
32
16
8
4
2
1


             
              

               The right-most bit has a value of 1, the next bit has a value of 2, the next bit has a value of 4, and so on as shown in the chart above. The decimal value of an octet is the sum of the bit values. So if all bits are on, the value of the octet is 255, or 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1



                 The following table shows that 11000000 equals 192 in decimal. The bit with a value of  128 and the bit with a value of 64 are turned on, so we add 128 + 64 and get 192

Bit
1
1
0
0
0
0
0
0
Bit value
128
64
32
16
8
4
2
1



This table shows that 10101000 equals 168 in decimal. The bits with values of 128, 32, and 8 are turned on, and their sum equals 168.
Bit
1
0
1
0
1
0
0
0
Bit value
128
64
32
16
8
4
2
1






Copyright © 2009 NetworkSense All rights reserved. rajin2c@gmail.com. | Bloggerized by rajin2c.