Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
0 Retooling
Variable Length Subnet Mask (VLSM)
What is VLSM?
A Variable Length Subnet Mask (VLSM) is a means of allocating IP addressing resources to subnets according to their individual need rather than some general network-wide rule. VLSM allows an organization to use more than one subnet mask within the same network address space. It is often referred to as subnetting a subnet, and can be used to maximize addressing efficiency. Large subnets are created for addressing LANs and small subnets are created for WAN links (a 30 bit mask is used to create subnets with only two host).
CCNA v3.0 Retooling
2
207.21.24.0 /24
25 users 25 users 10 users 8 users
How many network addresses are needed? How many hosts are needed for the largest LAN? How many bits need to be borrowed to address this network?
CCNA v3.0 Retooling
4
. . . . . . . .
. . . . . . . .
. . . . . . . .
Bits Masked /27 /27 /27 /27 /27 /27 /27 /27
207.21.24.0
Site A Site B Site C
25 users 25 users
10 users
8 users
Subnetting in a Box
To begin, in a class C network there are 256 addresses. When we subnet the address, we break it down in to smaller units or subnets.
0
256 addresses
255
Subnetting in a Box
If we were to borrow 1 bit, it would break the 256 addresses in to two parts (networks) with each part (subnet) having 128 addresses. The subnet mask would be 255.255.255.128.
0 128
128 addresses
128 addresses
127
255
Subnetting in a Box
If we were to borrow 2 bits, it would break each of these 2 networks in half again. This would give us 4 networks, each with 64 addresses. The subnet mask would now be 255.255.255.192.
0 128
64 addresses
64 addresses
63 64 192
191
64 addresses
64 addresses
127
255
Subnetting in a Box
If we were to borrow 3 bits, it would break each of these 4 networks in half again. This would give us 8 networks, each with 32 addresses. The subnet mask would now be 255.255.255.224.
0 32 128 160
32 addresses
32 addresses
32 addresses
32 addresses
31 64 96
63 192
159 224
191
32 addresses
32 addresses
32 addresses
32 addresses
95
127
223
255
Subnetting in a Box
If we were to borrow 4 bits, it would break each of these 8 networks in half again. This would give us 16 networks, each with 16 addresses. The subnet mask would now be 255.255.255.240.
0 32 128 160
16 addresses
15 16
16 addresses
48
47
16 addresses
143 144
16 addresses
176
175
16 addresses
31 64
16 addresses
63 96
16 addresses
159 192
16 addresses
191 224
16 addresses
79 80
16 addresses
111 112
16 addresses
207 208
16 addresses
239 240
16 addresses
CCNA v3.0 Retooling
95
16 addresses
127
16 addresses
223
16 addresses
255
10
Bits Masked /27 /27 /27 /27 /27 /27 /27 /27
Site A
Site B
Site C
25 users
25 users
10 users
8 users
12
25 users
25 users
10 users
/28 /28
/30 /30 /30 /30 /30 /30 /30 /30
13
Site A
Site B
Site C
______________
______________
_____________ 25 users
_____________ 8 users
_____________
14
Branch 1 12 users
Branch 2 12 users
Branch 3 12 users
Branch 4 12 users
Branch 5 12 users
15
Given the IP address 195.39.71.0 /24, subnet according to the largest subnet needed. (Headquarters 60 hosts) You would need to borrow 2 bits or / 26. This would give you 4 networks with 64 host addresses on each subnet.
128
63 64 192
191
127
CCNA v3.0 Retooling
255
16
Playing it safe, we 0 will not use the first subnet (subnet 0).
128
64 We will start addressing with 195.39.71.64 /26. Headquarters needs 60 hosts, so we will assign them .64 - .127.
17
The 5 Branch offices only need 12 hosts each. The next address block available is the .128 - .191 block (64 addresses). Here we will apply VLSM. Using a /28 mask will give us 16 hosts at each location. This will take care of 4 of the Branch offices.
CCNA v3.0 Retooling
128
160
144
176
192
18
To obtain a block for Branch 5, we will need to subnet the .192 - .255 block using a /28 mask.
128
160
144
176
192
Branch 5 12 hosts /28 (255.255.255.240)
224
208
240
19
Now we need to address the 5 WAN links that connect to the Branch offices. These are point-topoint connections and only require 2 addresses. Here we will use a /30 mask to further subnet the subnets.
128
160
144
176
192
Branch 5 12 hosts /28 (255.255.255.240)
224
WAN 5
232 236
228 240
208
WAN 1 WAN 2
216
WAN 3 WAN 4
212
CCNA v3.0 Retooling
220
20
Subnet 0 could be 0 used later if needed for future growth of HQ or for more Branch offices.
128
160
144
176
192
Branch 5 12 hosts /28 (255.255.255.240)
224
WAN 5
232 236
228 240
208
WAN 1 WAN 2
216
WAN 3 WAN 4
212
CCNA v3.0 Retooling
220
21
19 5
.3 9
.3 9 95 1
.7 1 .2 1
8/ 20 . .71
30
30
195.39.71.216 /30
2/
19 5
.3 9
5 19
.71
.2 2
4/
30
195.39.71.128 /28
CCNA v3.0 Retooling
195.39.71.144 /28
195.39.71.160 /28
195.39.71.176 /28
195.39.71.192 /28
22