Docsity

VLSM (Variable Length Subnet Mask) - Prof. Hakim, Slides of Computer Networks

Partial preview of the text

Download VLSM (Variable Length Subnet Mask) - Prof. Hakim and more Slides Computer Networks in PDF only on Docsity!

VLSM (Variable Length

Subnet Mask)

M D. A Z I Z U L H A K I M L E C T U R E R D E PA RT M E N T O F C S E DA F F O D I L I N T E R N AT I O N A L U N I V E R S I T Y

What is VLSM?

VLSM stands for Variable Length Subnet Mask where the subnet design uses

more than one mask in the same network which means more than one mask is

used for different subnets of a single class A, B, C or a network.

The biggest advantage of VLSM Subnetting is that, instead of forcing us to use a

fixed size for all segments, it allows us to choose the individual size for each

segment. This flexibility reduces the IP wastage. We can choose the size of

subnet which closely matches with our requirement.

VLSM Procedure

Suppose we have an IP address: 192.168.2.0/ And we need to create 4 subnets using following host requirements: 1 st subnet= 120 2 nd subnet = 60 3 rd subnet = 30 4 th subnet = 30

Step 1: Calculate Required

Host Bit.

For the first subnet it is given 120 IP addresses is required but 1 IP is required for Network address and
another 1 is for Broadcast address. So total requirement is 120+2=122 IP addresses.
For providing that much value we have to compare like this way: if,
From here we can get that 7 Host bits are required.
So, Host bit = 7
These are not possible
=> 128 This is possible

Step 3: Calculate updated

subnet mask

As we all know network bit is represented by 1 and Host bit is represented by 0. Now we have the updated subnet mask: **11111111.11111111.11111111.1 0000000

      1. 128** Now, we will find the range using the formula which we have used in FLSM, i.e. Range = Maximum Subnet Mask โ€“ Updated Subnet Mask 255.255.255.

- 255.255.255. 0. 0. 0. Network Block for the 1st^ subnet is 192.168.2.0 to 192.168.2. Now repeat these three steps for remaining subnets! Network Address 192.168.2. First Host Address 192.168.2. Last Host Address 192.168.2. Broadcast Address 192.168.2.

Calculation of 2

nd

Subnet

For the Second subnet it is given 60 IP addresses is required but 1 IP is required for Network address and another 1 is for Broadcast address. So total requirement is 60+2=62 IP addresses. => 64 62 Host bit = 6 Network bit = 32 - 6 = 26 Subnet mask: **11111111.11111111.11111111.11 000000

      1. 192** Range = 255.255.255.

- 255.255.255. 0. 0. 0. 63 Network Block for the 2nd^ subnet is 192.168.2.128 to 192.168.2. Network Address 192.168.2. First Host Address 192.168.2. Last Host Address 192.168.2. Broadcast Address 192.168.2.

Calculation of 4

th

Subnet

For the Forth subnet it is given 30 IP addresses is required but 1 IP is required for Network address and another 1 is for Broadcast address. So total requirement is 30+2=32 IP addresses. => 32 32 Host bit = 5 Network bit = 32 - 5 = 27 Subnet mask: **11111111.11111111.11111111.111 00000

      1. 224** Range = 255.255.255.

- 255.255.255. 0. 0. 0. 31 Network Block for the 4 th subnet is 192.168.2.224 to 192.168.2. Network Address 192.168.2. First Host Address 192.168.2. Last Host Address 192.168.2. Broadcast Address 192.168.2.

Thank You