VLSM Tutorial With Examples
VLSM Tutorial With Examples
VLSM is a process of dividing an IP network into the subnets of different sizes without wasting IP
addresses. When we perform Subnetting, all subnets have the same number of hosts, this is known as
FLSM (Fixed length subnet mask). In FLSM all subnets use same subnet mask, this lead to inefficiencies.
Basic of Network Addressing
In real life scenario, some subnets may require large number of host addresses while other may require
only few addresses.
For example, assume that you are a network administrator at ABC Software. Company has three
departments connected with wan links.
m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
With FLSM, to accumulate this requirement we have two choices, either purchase a class B IP address or
purchase at least two class C IP addresses.
This study source was downloaded by 100000827971319 from CourseHero.com on 06-30-2021 00:01:53 GMT -05:00
https://www.coursehero.com/file/50727263/VLSM-Tutorial-With-Examplesdocx/
a) First choice (purchase a class B IP address)
172.168.1.0/23
Subnetting of this address would give us 128 subnets and 510 hosts in each subnet. Our network requires
only 6 subnets and 160 addresses. We would have to pay for 65356 addresses while you need only 160
addresses. Every IP address adds more dollars in company bill. Would you consider this address space for
company?
b) Second choice (purchase at least two Class C IP addresses)
192.168.1.0/25
192.168.2.0/26
Subnetting of first address 192.168.1.0/25 would give us 2 subnets and 126 hosts in each subnet.
Subnetting of second address 192.168.2.0/26 would give us 4 subnets and 62 hosts in each subnet.
m
Collectively we are getting 6 subnets and 500 hosts from these two address spaces. We are still wasting
er as
more than 300 IP address, and we would have to purchase two address spaces.
co
eH w
o.
Variable Length Subnet Mask
rs e
Variable Length Subnet Mask (VLSM) extends classic Subnetting. VLSM is a process of breaking down
ou urc
subnets into the smaller subnets, according to the need of individual networks. In above example
company has requirement of 6 subnets and 160 host addresses. With VSLM you can fulfill this
requirement with single class C address space.
o
aC s
vi y re
VLSM Subnetting
In VLSM Subnetting, we do Subnetting of subnets according the network requirement.
ed d
ar stu
iii. Assign the appropriate subnet mask for the largest segment.
Th
iv. For second largest segments, take one of these newly created subnets and apply a different, more
appropriate, subnet mask to it.
v. Assign the appropriate subnet mask for the second largest segment.
vi. Repeat this process until the last network.
sh
VLSM Example
Now you know the steps of VLSM Subnetting. Let's understand it with above example. Our company
requires 6 subnets and 160 hosts.
This study source was downloaded by 100000827971319 from CourseHero.com on 06-30-2021 00:01:53 GMT -05:00
https://www.coursehero.com/file/50727263/VLSM-Tutorial-With-Examplesdocx/
Step 1:- Oder all segments according the hosts requirement (Largest to smallest).
Subnet Segment Hosts
1 Development 74
2 Production 52
3 Administrative 28
4 Wan link 1 2
5 Wan link 2 2
6 Wan link 3 2
m
Step 2:- Do subnetting for largest segment. Our largest segment needs 74 host addresses. /25 provide us
er as
two subnets with 126 hosts in each subnet.
co
eH w
o.
192.168.1.0/25
rs e
ou urc
Subnet Subnet 1
Network ID 192.168.1.0
o
Broadcast ID 192.168.1.127
ed d
Step 3:- Assign subnet mask to the largest segment. As you can see in above table, subnet 1 fulfills our
ar stu
Requirement 74
Th
CIDR /25
Subnet mask 255.255.255.128
Network ID 192.168.1.0
sh
This study source was downloaded by 100000827971319 from CourseHero.com on 06-30-2021 00:01:53 GMT -05:00
https://www.coursehero.com/file/50727263/VLSM-Tutorial-With-Examplesdocx/
Step 4:- Do subnetting for second largest segment from next available subnet. Next segment requires 52
host addresses. Subnetting of /26 will give us two subnets with 62 hosts in the subnet.
/26 provide us 4 subnets with 62 hosts in each subnet.
192.168.1.0/26
Segment Production
Requirement 52
CIDR /26
Subnet mask 255.255.255.192
Network ID 192.168.1.128
First host 192.168.1.129
Last host 192.168.1.190
m
er as
Broadcast ID 192.168.1.191
co
eH w
o.
Step 5:- Our next segment requires 28 hosts. Subnetting of /27 will give us two subnets with 30 hosts in
the subnet. rs e
ou urc
192.168.1.0/27
o
Subnets 1 to 6 [address from 0 to 191] are already occupied by previous segments. We can assign subnet
aC s
7 to this segment.
vi y re
Segment Administrative
Requirement 28
ed d
CIDR /27
ar stu
Step 6:- Our last three segments require 2 hosts per subnet. Do subnetting for these.
192.168.1.0/30
This study source was downloaded by 100000827971319 from CourseHero.com on 06-30-2021 00:01:53 GMT -05:00
https://www.coursehero.com/file/50727263/VLSM-Tutorial-With-Examplesdocx/
Wan Link 1
Segments Wan Link 1
Requirement 2
CIDR /30
Subnet mask 255.255.255.252
Network ID 192.168.1.224
First hosts 192.168.1.225
Last hosts 192.168.1.226
Broadcast ID 192.168.1.227
m
Wan Link 2
er as
co
Segments Wan Link 2
eH w
Requirement 2
o.
CIDR /30
rs e
ou urc
Subnet mask 255.255.255.252
Network ID 192.168.1.228
o
Wan link 3
ar stu
CIDR /30
Th
This study source was downloaded by 100000827971319 from CourseHero.com on 06-30-2021 00:01:53 GMT -05:00
https://www.coursehero.com/file/50727263/VLSM-Tutorial-With-Examplesdocx/
We have assigned IP addresses to all segments, still we have 20 addresses available. This is the magic of
VLSM.
m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh
This study source was downloaded by 100000827971319 from CourseHero.com on 06-30-2021 00:01:53 GMT -05:00
https://www.coursehero.com/file/50727263/VLSM-Tutorial-With-Examplesdocx/
Powered by TCPDF (www.tcpdf.org)