Tuesday, August 12, 2008

V L Subnetting


Variable Length Subnetting
One of the original uses for subnetting was to subdivide a class-based network ID into a series of equal-sized subnets. For example, a 4-bit subnetting of a class B network ID produced 16 equal-sized subnets (using the all-ones and all-zeros subnets). However, subnetting is a general method of utilizing host bits to express subnets and does not require equal-sized subnets.
Subnets of different size can exist within a class-based network ID. This is well-suited to real-world environments, where networks of an organization contain different numbers of hosts, and different-sized subnets are needed to minimize the wasting of IP addresses. The creation and deployment of various-sized subnets of a network ID is known as variable length subnetting and uses variable length subnet masks (VLSM).
Variable length subnetting is a technique of allocating subnetted network IDs that use subnet masks of different sizes. However, all subnetted network IDs are unique and can be distinguished from each other by their corresponding subnet mask.
The mechanics of variable length subnetting are essentially that of performing subnetting on a previously subnetted network ID. When subnetting, the network ID bits are fixed and a certain number of host bits are chosen to express subnets. With variable length subnetting, the network ID being subnetted has already been subnetted.
For example, given the class-based network ID of 135.41.0.0/16, a required configuration is one subnet with up to 32,000 hosts, 15 subnets with up to 2,000 hosts, and eight subnets with up to 250 hosts.
One Subnet with up to 32,000 Hosts
To achieve a requirement of one subnet with approximately 32,000 hosts, a 1-bit subnetting of the class-based network ID of 135.41.0.0 is done, producing 2 subnets, 135.41.0.0/17 and 135.41.128.0/17. This subnetting allows up to 32,766 hosts per subnet. 135.41.0.0/17 is chosen as the network ID, which fulfills the requirement.
Table 1.12 shows one subnet with up to 32,766 hosts per subnet.
Table 1.12 One Subnet with up to 32,766 Hosts
Subnet Number
Network ID (Dotted Decimal)
Network ID (Network Prefix)
1
135.41.0.0, 255.255.128.0
135.41.0.0/17
Fifteen Subnets with up to 2,000 Hosts
To achieve a requirement of 15 subnets with approximately 2,000 hosts, a 4-bit subnetting of the subnetted network ID of 135.41.128.0/17 is done. This produces 16 subnets (135.41.128.0/21, 135.41.136.0/21 . . . 135.41.240.0/21, 135.41.248.0/21), allowing up to 2,046 hosts per subnet. The first 15 subnetted network IDs (135.41.128.0/21 to 135.41.240.0/21) are chosen as the network IDs, which fulfills the requirement.
Table 1.13 illustrates 15 subnets with up to 2,046 hosts per subnet.

Table 1.13 Fifteen Subnets with up to 2,046 Hosts
Subnet Number
Network ID (Dotted Decimal)
Network ID (Network Prefix)
1
135.41.128.0, 255.255.248.0
135.41.128.0/21
2
135.41.136.0, 255.255.248.0
135.41.136.0/21
3
135.41.144.0, 255.255.248.0
135.41.144.0/21
4
135.41.152.0, 255.255.248.0
135.41.152.0/21
5
135.41.160.0, 255.255.248.0
135.41.160.0/21
6
135.41.168.0, 255.255.248.0
135.41.168.0/21
7
135.41.176.0, 255.255.248.0
135.41.176.0/21
8
135.41.184.0, 255.255.248.0
135.41.184.0/21
9
135.41.192.0, 255.255.248.0
135.41.192.0/21
10
135.41.200.0, 255.255.248.0
135.41.200.0/21
11
135.41.208.0, 255.255.248.0
135.41.208.0/21
12
135.41.216.0, 255.255.248.0
135.41.216.0/21
13
135.41.224.0, 255.255.248.0
135.41.224.0/21
14
135.41.232.0, 255.255.248.0
135.41.232.0/21
15
135.41.240.0, 255.255.248.0
135.41.240.0/21
Eight Subnets with up to 250 Hosts
To achieve a requirement of eight subnets with up to 250 hosts, a 3-bit subnetting of subnetted network ID of 135.41.248.0/21 is done, producing eight subnets (135.41.248.0/24, 135.41.249.0/24 . . . 135.41.254.0/24, 135.41.255.0/24) and allowing up to 254 hosts per subnet. All 8 subnetted network IDs (135.41.248.0/24 to 135.41.255.0/24) are chosen as the network IDs, which fulfills the requirement.
Table 1.14 illustrates eight subnets with 254 hosts per subnet.
Table 1.14 Eight subnets with up to 254 Hosts
Subnet Number
Network ID (Dotted Decimal)
Network ID (Network Prefix)
1
135.41.248.0, 255.255.255.0
135.41.248.0/24
2
135.41.249.0, 255.255.255.0
135.41.249.0/24
3
135.41.250.0, 255.255.255.0
135.41.250.0/24
4
135.41.251.0, 255.255.255.0
135.41.251.0/24
5
135.41.252.0, 255.255.255.0
135.41.252.0/24
6
135.41.253.0, 255.255.255.0
135.41.253.0/24
7
135.41.254.0, 255.255.255.0
135.41.254.0/24
8
135.41.255.0, 255.255.255.0
135.41.255.0/24

No comments: