VLSM
VLSM (Variable Length Subnet Masking) help better use of IP addresses space. We can assign to LAN and WAN segments without any waste using Variable Length Subnet Mask (VLSM). As shown in the scenario in Figure below, the hosts in each of the sub-network will be assigned a subnet according to the number of the host to decrease the waste of IP addresses.
The first host IPv4 address for each subnet is assigned to the LAN interface of the router. The WAN interfaces of the routers are assigned the IP addresses and mask for the /30 subnets. Hosts on each subnet will have a host IPv4 address from the range of host addresses for that subnet 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 above mention network scenario.
In the previous lesson, we have assigns the one subnet to each network. Each network contains 126 usable hosts. You can see that there are a lot of IPs are going waste in-network human resource, quality control and between the WAN ports of the routers. So, we can ignore the waste of IP addresses using VLSM subnetting.
So, first of all, we can assign the first three subnet of the previous lesson to management, finance and sales department because the number of the host in these LANs are between 64 and 128, so we need a network with /25 prefix which can accommodate 126 hosts.
We can further subnet the Net-3 into /26, /27, and 8x /30 networks. The network with /26 prefix can accommodate up to 62 host, and the network with /27 prefix can accommodate up to 30 hosts while the network with /30 prefix is generally used for point to point connectivity. The figure below illustrates the assigned IP addresses to the scenario which we have already discussed in the previous lesson, but you can see that now we have saved many of IP addresses for future use.
VLSM Chart
An addressing chart is very important for identifying the blocks of addresses already used and the block 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 |