Sie sind auf Seite 1von 29

VARIABLE LENGTH

SUBNET MASK
(VLSM) SUBNETTING
By: Fritzie S. Estrada
◦Variable Length Subnet Masking (VLSM) is a
technique that allows network administrators to
divide an IP address space into subnets of
different sizes, unlike simple same-size Subnetting.
◦ VLSM in a way, means subnetting a subnet. To
simplify further, VLSM is the breaking down of IP
addresses into subnets (multiple levels) and
allocating it according to the individual need on
a network. It can also be called a classless IP
addressing.
IMPLEMENTING VLSM
◦Subnetting lets you efficiently allocate addresses by
taking one large broadcast domain and breaking it up
into smaller, more manageable broadcast domains.
◦VLSMs let you more efficiently allocate IP addresses by
adding multiple layers of the addressing hierarchy.
◦Variable Length Subnet Masks (VLSM) allows you to
use different masks for each subnet, thereby using
address space efficiently.
Differences between FLSM Subnetting and
VLSM Subnetting
FLSM (Fixed Length Subnet Masks) Subnetting VLSM (Variable Length Subnet Masks)
Subnetting

All subnets are equal in size. Subnets are variable in size.

All subnets have equal number of hosts. Subnets have variable number of hosts.

All subnets use same subnet mask. Subnets use different subnet masks.

It is easy in configuration and administration. It is complex in configuration and


administration.

It wastes a lot of IP addresses. It wastes minimum IP addresses.

It is also known as classfull Subnetting. It is also known as classless Subnetting.

It supports both classfull and classless routing It supports only classless routing protocols.
protocols.
◦ Which Subnetting should be used depends on the
objectives and type of addresses used in network. FLSM
provides easier Subnetting at the cost of IP addresses
while VLSM best utilizes IP addresses at the cost of
simplicity. For private IP addresses, FLSM is the best
choice. For public IP addresses, VLSM is the best option.
◦ 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.
CIDR Subnet mask Network Host bits Networks Block Size Valid Hosts
bits or Total

CLASS A
Hosts
/8 255.0.0.0 0 24 1 16777216 16777214
/9 255.128.0.0 1 23 2 8388608 8388606

SUBNETTING
/10 255.192.0.0 2 22 4 4194304 4194302
/11 255.224.0.0 3 21 8 2097152 2097150
/12 255.240.0.0 4 20 16 1048576 1048574

CHART /13
/14
/15
255.248.0.0
255.252.0.0
255.254.0.0
5
6
7
19
18
17
32
64
128
524288
262144
131072
524286
262142
131070
/16 255.255.0.0 8 16 256 65536 65534
/17 255.255.128.0 9 15 512 32768 32766

/18 255.255.192.0 10 14 1024 16384 16382

/19 255.255.224.0 11 13 2048 8192 8190

/20 255.255.240.0 12 12 4096 4096 4094

/21 255.255.248.0 13 11 8192 2048 2046

/22 255.255.252.0 14 10 16384 1024 1022

/23 255.255.254.0 15 9 32768 512 510

/24 255.255.255.0 16 8 65536 256 254

/25 255.255.255.128 17 7 131072 128 126

/26 255.255.255.192 18 6 262144 64 62

/27 255.255.255.224 19 5 524288 32 30

/28 255.255.255.240 20 4 1048576 16 14

/29 255.255.255.248 21 3 2097152 8 6

/30 255.255.255.252 22 2 4194304 4 2


CIDR Subnet mask Network Host bits Networks Block Size Valid Hosts
bits /Total

CLASS B
Hosts
/16 255.255.0.0 0 16 1 65536 65534
/17 255.255.128.0 1 15 2 32768 32766

SUBNETTING /18 255.255.192.0 2 14 4 16384 16382

CHART /19 255.255.224.0 3 13 8 8192 8190

/20 255.255.240.0 4 12 16 4096 4094

/21 255.255.248.0 5 11 32 2048 2046

/22 255.255.252.0 6 10 64 1024 1022

/23 255.255.254.0 7 9 128 512 510

/24 255.255.255.0 8 8 256 256 254

/25 255.255.255.128 9 7 512 128 126

/26 255.255.255.192 10 6 1024 64 62

/27 255.255.255.224 11 5 2048 32 30

/28 255.255.255.240 12 4 4096 16 14

/29 255.255.255.248 13 3 8192 8 6

/30 255.255.255.252 14 2 16384 4 2


CLASS C SUBNETTING CHART
CIDR Subnet mask Network Host bits Networks Block Valid
bits Size Hosts
/Total
Hosts
/24 255.255.255.0 0 8 1 256 254

/25 255.255.255.128 1 7 2 128 126

/26 255.255.255.192 2 6 4 64 62

/27 255.255.255.224 3 5 8 32 30

/28 255.255.255.240 4 4 16 16 14

/29 255.255.255.248 5 3 32 8 6

/30 255.255.255.252 6 2 64 4 2
VLSM Example
◦Given the same network and requirements as
in Sample Exercise 2 (last meeting’s Powerpoint
Presentation) develop a subnetting scheme with
the use of VLSM, given:
◦netA: must support 14 hosts
◦netB: must support 28 hosts
◦netC: must support 2 hosts
◦netD: must support 7 hosts
◦netE: must support 28 hosts
Determine what mask allows the required number of hosts.
◦ netA: requires a /28 (255.255.255.240) mask to support 14
hosts
◦ netB: requires a /27 (255.255.255.224) mask to support 28
hosts
◦ netC: requires a /30 (255.255.255.252) mask to support 2
hosts
◦ netD*: requires a /28 (255.255.255.240) mask to support 7
hosts
◦ netE: requires a /27 (255.255.255.224) mask to support 28
hosts
The easiest way to assign the subnets is to assign the
largest first. For example, you can assign in this manner:
◦netB: 204.15.5.0/27 host address range 1 to 30
◦netE: 204.15.5.32/27 host address range 33 to 62
◦netA: 204.15.5.64/28 host address range 65 to 78
◦netD: 204.15.5.80/28 host address range 81 to 94
◦netC: 204.15.5.96/30 host address range 97 to 98
This can be graphically represented in the figure in the
next slide.
The figure below illustrates how using VLSM helped
save more than half of the address space.
VLSM Example 1 (Class A Network)
VLSM Example 2 (Class B Network)
VLSM Example 3 (Class C Network)
Solution for VLSM Example 3:
Based on hosts’ requirement, arrange all segments in
descending order and select appropriate block size for each
segment. No. Segment Host Nearest Valid hosts
requireme block size in block
nt
1 LAN Segment1 29 32 30 (32 -2)
2 LAN Segment 2 21 32 30 (32 -2)
3 LAN Segment 3 12 16 14 (16-2)
4 LAN Segment 4 8 16 14 (16-2)
5 WAN Link 1 2 4 2 (4-2)
6 WAN Link 2 2 4 2 (4-2)
7 WAN Link 3 2 4 2 (4-2)
8 WAN Link 4 2 4 2 (4-2)
◦While selecting the nearest block size, compare the
host requirement with valid host instead of the
block size itself. For example, LAN segment 4 needs
8 hosts, but we can’t use the block size 8 for it. As
block size 8 offers only 6 valid hosts (8 -2) while we
need 8 valid hosts for this segment. For this
segment, we have to use the block size which
provides 8 or more valid hosts such as block size 16.
Same way for WAN links which need 2 hosts, we
have to use the block size 4.
◦ Once segments are arranged based on hosts’ requirement and host
requirements are converted in nearest block size, use following steps.
◦ Do Subnetting for the largest segment. From subnetted subnets, assign
first subnet to it.
◦ If next segment has similar block size, assign next subnet to it.
◦ Repeat this process till the requirements are same.
◦ If next segment requires different block size, do Subnetting again for
the block size of that segment and pick the subnet which comes after
the occupied subnets. Occupied subnets are the subnets which
provide the IP addresses which are already used.
◦ Just like above step, if next segment requires similar block size, use next
subnet for it otherwise do Subnetting again.
◦ Repeat same steps till the last segment of the network.
◦ The first largest segment (LAN Segment1) requires the block size 32. For 32
block size, we use the Subnetting of /27.
◦ In class C, Subnetting of /27 provides us 8 networks (subnets) of block size 32.
◦ 0-31, 32-63, 64-95, 96-127, 128-159, 160-191, 192-223, 224-255
◦ Let’s use the first subnet 0-31 for it.
◦ Since second segment (LAN Segment2) also has the similar requirement, use
the second subnet 32-63 for it.
◦ Third segment (LAN Segment3) requires the block size 16 which is different
from the second segment, so instead of using the subnet which provides
block size 32, we will do the Subnetting again and use the subnet which
provides block size 16.
◦ In class C, Subnetting of /28 provides 16 networks of block size 16.
◦ 0-15, 16-31, 32-47, 48-63, 64-79, 80-95, 96-111, 112-127, 128-143, 144-159, 160-
175, 176-191, 192-207, 208-223, 224-239, 240-255
◦ If we exclude the occupied subnets, we will get the available
subnets for this segment and next segments.
◦ The subnets which provide the addresses which are already
assigned are known as occupied subnets. In this Subnetting the
occupied subnets are 0-15, 16-31, 32-47 and 48-63. These
subnets provide the addresses (0 to 63) which are already
assigned in previous segments.
◦ Let’s use the first available subnet 64-79 from this Subnetting for
the third segment (LAN Segment3).
◦ Forth segment (LAN Segment4) also has the similar requirement.
Let’s assign next available subnet 80-95 to it.
◦ Next segments are WAN links. WAN links require only 2
addresses. For 2 valid addresses we need the block size of 4.
◦ In class C, Subnetting of /30 provides us 64 networks of block
size 4.
◦ 0-3, 4-7, 8-11, 12-15, 16-19, 20-23, 24-27, 28-31, 32-35, 36-39, 40-
43, 44-47, 48-51, 52-55, 56-59, 60-63, 64-67, 68-71, 72-75, 76-79,
80-83, 84-87, 88-91, 92-95, 96-99, 100-103, 104-107, 108-111, 112-
115, 116-119, 120-123, 124-127, 128-131, 132-135, 136-139, 140-
143, 144-147, 148-151, 152-155, 156-159, 160-163, 164-167, 168-
171, 172-175, 176-179, 180-183, 184-187, 188-191, 192-195, 196-
199, 200-203, 204-207, 208-211, 212-215, 216-219, 220-223, 224-
227, 228-231, 232-235, 236-239, 240-243, 244-247, 248-251, 252-
255
◦ Exclude the occupied subnets and use first four available
subnets 96-99, 100-103, 104-107 and 108-111 for WAN links.
Segment CIDR Subnet Mask Network Broad cast Valid host
Address Address addresses
LAN Segment1 /27 255.255.255.224 192.168.1.0 192.168.1.31 192.168.1.1 to
192.168.1.30
LAN Segment 2 /27 255.255.255.224 192.168.1.32 192.168.1.63 192.168.1.33 to
192.168.1.62

LAN Segment 3 /28 255.255.255.240 192.168.1.64 192.168.1.79 192.168.1.65 to


192.168.1.78

LAN Segment 4 /28 255.255.255.240 192.168.1.80 192.168.1.95 192.168.1.81 to


192.168.1.94

WAN Link 1 /30 255.255.255.252 192.168.1.96 192.168.1.99 192.168.1.97 to


192.168.1.98

WAN Link 2 /30 255.255.255.252 192.168.1.100 192.168.1.103 192.168.1.101 to


192.168.1.102

WAN Link 3 /30 255.255.255.252 192.168.1.104 192.168.1.107 192.168.1.105 to


192.168.1.106

WAN Link 4 /30 255.255.255.252 192.168.1.108 192.168.1.111 192.168.1.107 to


192.168.1.108
REFERENCES
◦ https://www.cisco.com/c/en/us/support/docs/ip/routing-
information-protocol-rip/13788-3.html
◦ https://www.computernetworkingnotes.com/ccna-study-
guide/vlsm-subnetting-explained-with-examples.html
◦ https://www.computernetworkingnotes.com/ccna-study-
guide/vlsm-subnetting-examples-and-calculation-explained.html
◦ https://www.orbit-computer-solutions.com/variable-length-
subnet-mask-vlsm/
ACTIVITY 1: (https://www.orbit-computer-
solutions.com/variable-length-subnet-mask-vlsm/)
◦ Let’s work with the diagram below:
◦ Looking at the diagram, we have three LANs connected
to each other with two WAN links.
◦ The first thing to look out for is the number of subnets and
number of hosts. In this case, an ISP
allocated 192.168.1.0/24. Class C
◦ HQ = 50 host
◦ RO1 = 30 hosts
◦ RO2 = 10 hosts
◦ 2 WAN links
◦ We will try and subnet 192.168.1.0 /24 to sooth this network
which allows a total number of 254 hosts
ACTIVITY 2: (https://www.computernetworkingnotes.com/ccna-
study-guide/vlsm-subnetting-explained-with-examples.html)

Do the VLSM Subnetting of following network.


In this network:
◦Development department has 74 computers.
◦Production department has 52 computers.
◦Administration department has 28 computers.
◦All departments are connected with each
other via wan links.
◦Each wan link requires two IP addresses.
◦The given address space is 192.168.1.0/24.
◦The first step of VLSM Subnetting is selecting the
appropriate block size for each segment. Following
table lists all available block sizes.
2 4 8 16 32 64 128 256

512 1024 2048 4096 8192 16384 32768 65536

131072 262144 524288 104857 209715 419430 8388608 16777216


6 2 4

Das könnte Ihnen auch gefallen