Tutorials
In the first part, we covered basic subnetting concepts using fixed-length subnet masks (FLSM). In this section, we’ll go deeper into advanced subnetting techniques, including Variable Length Subnet Masking (VLSM), supernetting, and real-world subnetting scenarios. Understanding these concepts is vital for network architects and engineers involved in efficient IP address planning and routing.
VLSM allows you to allocate subnet masks of varying lengths to different subnets. Unlike traditional subnetting where all subnets are of equal size (FLSM), VLSM enables efficient use of IP space by creating subnets of different sizes based on need.
Avoids IP address wastage.
Allows subnetting a subnet (sub-subnetting).
Suitable for networks with varying host requirements.
You are given the IP block: 192.168.1.0/24.
Your host requirements:
LAN A: 100 hosts
LAN B: 50 hosts
LAN C: 25 hosts
LAN D: 10 hosts
Step 1: Sort Requirements in Descending Order
| Network | Hosts Required | Nearest Power of 2 | Subnet Mask |
|---|---|---|---|
| A | 100 | 128 | /25 |
| B | 50 | 64 | /26 |
| C | 25 | 32 | /27 |
| D | 10 | 16 | /28 |
Step 2: Assign Subnets
| Network | Subnet Address | Range | Broadcast |
|---|---|---|---|
| A | 192.168.1.0/25 | .1 – .126 | 192.168.1.127 |
| B | 192.168.1.128/26 | .129 – .190 | 192.168.1.191 |
| C | 192.168.1.192/27 | .193 – .222 | 192.168.1.223 |
| D | 192.168.1.224/28 | .225 – .238 | 192.168.1.239 |
IP Space Used Efficiently: Only 240 addresses out of 256 are used.
Using VLSM, you can keep subdividing a subnet. This recursive process is useful for hierarchical network designs.
Example: Subnetting 192.168.1.0/24 → /26 → /28
Each level offers smaller subnets to distribute for specific functions (e.g., management, servers, printers).
Supernetting is the process of combining multiple contiguous subnets into a larger network. It’s the reverse of subnetting and is used to reduce routing table size.
Often used in route summarization in BGP and large enterprise routing.
Networks must be contiguous.
Number of networks must be a power of 2.
All must share common bits in network addresses.
Example:
Combine the following networks:
192.168.4.0/24
192.168.5.0/24
192.168.6.0/24
192.168.7.0/24
Common prefix in binary: first 22 bits are the same
→ Supernet: 192.168.4.0/22
This route now represents all four original subnets.
When planning a network:
Assess Requirements: Hosts, departments, location.
Avoid IP Wastage: Use VLSM wherever possible.
Allow Growth: Provide buffer IPs for future expansion.
Keep It Structured: Use logical IP blocks per department or building.
2n\text{2}^n where nn = number of bits borrowed
2h−2\text{2}^h - 2 where hh = host bits
256−last octet of subnet mask256 - \text{last octet of subnet mask}
Example: For 255.255.255.240 → Block size = 256 - 240 = 16
→ Subnets: 0, 16, 32, 48...
Used in ACLs and OSPF instead of subnet masks. A wildcard mask is the inverse of the subnet mask.
| Subnet Mask | Wildcard Mask |
|---|---|
| 255.255.255.0 | 0.0.0.255 |
| 255.255.255.240 | 0.0.0.15 |
Wildcard formula:
Wildcard = 255 - Subnet Mask
Used in commands like:
access-list 10 permit 192.168.1.0 0.0.0.255
To simplify:
Subnet calculators
CIDR cheat sheets
Network design tools (Cisco Packet Tracer, GNS3)
Given: 10.0.0.0/8
Create 8 subnets, each supporting at least 500 hosts.
Nearest power: 2^9 = 512 → /23
8 subnets → Need 3 bits: /8 + 3 = /11
Final mask: /23 → 255.255.254.0
Advanced subnetting through VLSM and supernetting is vital for efficient IP space utilization and scalable network design. Whether for LAN, WAN, or ISP-level deployment, mastering these techniques ensures better planning, security, and performance in any networking environment.
Anand Software and Training Pvt. Ltd. is not associated with Cisco® organization or any other company. CCNA™ is a trademarks of Cisco® organization. All trademarks are duly acknowledged. All practice tests and study material provided here is the copyright of Anand Software and Training Pvt. Ltd. All rights reserved.