VLSM

VLSM (Variable Length Subnet Masking) helps improve the use of IP address space. Using a variable length subnet mask (VLSM), we can assign LAN and WAN segments without wasting IP Addresses. As shown in the scenario in the Figure below, the hosts in each subnetwork will be assigned a subnet according to the number of hosts to decrease the waste of IP addresses.

Each subnet’s first host IPv4 address is assigned to the router’s LAN interface. The routers’ WAN interfaces are assigned the IP addresses and mask for the /30 subnets. Hosts on each subnet will have a host IPv4 address from that subnet’s range of host addresses and an appropriate mask. Hosts will use the address of the attached router LAN interface as the default gateway address. The table below is the addressing scheme for the network mentioned above scenario.

In the previous lesson, we have assigned the one subnet to each network. Each network contains 126 usable hosts. You can see that many IPs will waste in-network human resources, quality control, and between the WAN ports of the routers. So, we can ignore the waste of IP addresses using VLSM subnetting.

First, we can assign the first three subnets of the previous lesson to the management, finance, and sales departments because the number of hosts in these LANs is between 64 and 128. Therefore, we need a network with /25 prefixes, which can accommodate 126 hosts.

We can subnet the Net-3 into /26, /27, and 8x /30 networks. The network with the/26 prefix can accommodate up to 62 hosts, and the network with the/27 prefix can accommodate up to 30 hosts. In comparison, the network with the/30 prefix is generally used for point-to-point connectivity. The figure below illustrates the assigned IP addresses to the scenario we discussed in the previous lesson. Still, you can see that we have saved many IP addresses for future use.

VLSM

VLSM Chart

An addressing chart is very important for identifying the blocks of addresses already used and available for future use, as shown in the table below. The VLSM chart helps the network administrator to avoid assigning addresses that have previously been allocated.

Net-0 115.255.240.0/25 Assign to Management
Net-1 115.255.240.128/25 Assign to Sales
Net-2 115.255.241.0/25 Assign to Finance
Net-3 115.255.241.128/25 Required further subnetting into /26 Prefix
Net-3a 115.255.241.128/26 Assign to Human Resource
Net-3b 115.255.241.192/26 Required further subnetting into /27 Prefix
Net-3b1 115.255.241.192/27 Assign to Quality Control
Net-3b2 115.255.241.224/27 Required further subnetting into /30 Prefix
Net-3b2A 115.255.241.224/30 Assign to WAN Network between Routers
Net-3b2B 115.255.241.228/30 Spare for future Expensionn
Net-3b2C 115.255.241.232/30 Spare for future Expensionn
Net-3b2D 115.255.241.236/30 Spare for future Expensionn
Net-3b2E 115.255.241.240/30 Spare for future Expensionn
Net-3b2F 115.255.241.244/30 Spare for future Expensionn
Net-3b2G 115.255.241.248/30 Spare for future Expensionn
Net-3b2H 115.255.241.252/30 Spare for future Expensionn
Net-4 115.255.242.0/25 Spare for future Expensionn
Net-5 115.255.242.128/25 Spare for future Expensionn
Net-6 115.255.243.0/25 Spare for future Expensionn
Nett-7 115.255.243.128/25 Spare for future Expensionn
WP Table Builder