CN Lab Lecture 3 VLSM_Fall_23_24
CN Lab Lecture 3 VLSM_Fall_23_24
1. Introduction
2. VLSM
▪ Steps of VLSM
▪ Example 1
▪ Example 2
3. Homework
Introduction
Yup!
Instead of giving the same number of IP addresses to all subnets,
allocate different number of IP addresses depending
on each subnet’s needs.
VLSM
26 6
Subnet No. of IPs How many bits to No. of No. of host bits Subnet mask Allocated IP range
required borrow allocated IPs No. of net bits
A 56 26 > 56 > 25 64 𝑥 = 6, 255.255.255.192 192.168.5.0-
𝑦 = 32 − 6 = 26 192.168.5.63/26
G 26 25 > 26 > 24 32 𝑥 = 5, 255.255.255.224 192.168.5.64-
𝑦 = 32 − 5 = 27 192.168.5.95/27
F 21 25 > 21 > 24 32 𝑥 = 5, 255.255.255.224 192.168.5.96-
𝑦 = 32 − 5 = 27 192.168.5.127/27
E 5 23 > 5 > 22 8 𝑥 = 3, 255.255.255.248 192.168.5.128-
𝑦 = 32 − 3 = 29 192.168.5.135/29
B 4 22 = 4 4 𝑥 = 2, 255.255.255.252 192.168.5.136-
𝑦 = 32 − 2 = 30 192.168.5.139/30
C 4 22 = 4 4 𝑥 = 2, 255.255.255.252 192.168.5.140-
𝑦 = 32 − 2 = 30 192.168.5.143/30
D 4 22 = 4 4 𝑥 = 2, 255.255.255.252 192.168.5.144-
𝑦 = 32 − 2 = 30 192.168.5.147/30
VLSM….
Example 1
VLSM
No. of allocated IPs: 64+32+32+8+4+4+4=148 IP
(148−120)×100
Percentage of unused IP= = 19% (approx.)
148
[No reference]
Recommended Books
2. CCNA Routing and Switching, T. Lammle, John Wily & Sons, Second
Edition, 2016, USA.