Using the VLSM subnets, the LAN and WAN segments can be addressed without unnecessary waste.
The hosts in each of the LANs will be assigned a valid host address with the range for that subnet and /27 mask. Each of the four routers will have a LAN interface with a /27 subnet and a one or more serial interfaces with a /30 subnet.
Using a common addressing scheme, 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.
Figures 1 - 4 show the interface configuration for each of the routers.
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.
- Building A Hosts (192.168.20.0/27) will use router 192.168.20.1 address as the default gateway address.
- Building B Hosts (192.168.20.32/27) will use router 192.168.20.33 address as the default gateway address.
- Building C Hosts (192.168.20.64/27) will use router 192.168.20.65 address as the default gateway address.
- Building D Hosts (192.168.20.96/27) will use router 192.168.20.97 address as the default gateway address.