Variable Length Subnet Mask (VSLM)
Variable Length Subnet Mask (VSLM)
01
For example, to write the IPv4 address 192.168.42.23 with a subnet mask of 255.255.255.0 in
slash notation:
Step - 3
Step - 2 Sort the requirements of IPs in descending order
(Highest to Lowest). Allocate the next highest range, so let's assign
192.168.1.128 /26 (255.255.255.192) to the Purchase
Sales 100 department. This IP subnet with Network number
Purchase 50 192.168.1.128 has 62 valid Host IP Addresses which can
Accounts 25 be easily assigned to all the PCs of the Purchase
department. The subnet mask used has 11000000 in the
Management 5 last octet.
Cont….
Cont….
Allocate the next highest range, i.e. Accounts. The requirement of 25 IPs
can be fulfilled with 192.168.1.192 /27 (255.255.255.224) IP subnet, which
Step - 5
contains 30 valid host IPs. The network number of Accounts department will
be 192.168.1.192. The last octet of subnet mask is 11100000.
By using VLSM, the administrator can subnet the IP subnet in such a way
that least number of IP addresses are wasted. Even after assigning IPs to
every department, the administrator, in this example, is still left with plenty of
IP addresses which was not possible if he has used CIDR.
EXAMPLE :
A.
20 = 1 /32
28 = 256 /24
21 = 2 /31
29 = 512 /23
22 = 4 /30
210 = 1024 /22
23 = 8 /29
2 11 = 2048 /21 3
24 = 16 /28 Octet 4 Oc
tet
Subn
Host Subnet Mask Octet Increment Network Address et 1st usable address Last Usable address Broadcast Address
Mask
100 HOST /25 Octet 4 128 192.168.10.0 /25 192.168.10.1 192.168.10.126 192.168.10.127
50 HOSTS /26 Octet 4 64 192.168.10.128 /26 192.168.10.129 192.168.10.190 192.168.10.191
10HOSTS /28 Octet 4 16 192.168.10.192 /28 192.168.10.193 192.168.10.206 192.168.10.207
192.168.10.208 /24