CIDR, VLSM, and Supernetting with Practical and Complete Examples

This article provides a comprehensive explanation of CIDR, VLSM, and Supernetting with diverse, step-by-step examples. We start with the basic concepts, then demonstrate real-world network scenarios with detailed calculations. Finally, a complete combined network design using all three techniques is presented to give you a deep and practical understanding.

CIDRVLSMSupernetting

~4 min read · Updated Apr 7, 2026

Introduction

With the rapid growth of the Internet, managing IPv4 addresses became a major challenge. The old classful addressing system caused massive waste of IP addresses. Three key techniques were developed to solve this: CIDR, VLSM, and Supernetting. In this article, each concept is explained with practical examples, precise calculations, and real network scenarios.

What is CIDR?

CIDR (Classless Inter-Domain Routing) is a classless method introduced in 1993. Instead of fixed class A, B, and C masks, it uses variable prefix lengths.

Standard notation:

192.168.10.0/24

The number after the slash (/) indicates the number of network bits.

Calculating Addresses in CIDR

General formula:

Number of addresses = 2^(32 - Prefix Length)
Usable hosts = 2^(32 - Prefix Length) - 2

Example:

192.168.10.0/26
Host bits = 32 - 26 = 6
Total addresses = 2^6 = 64
Usable hosts = 62

What is VLSM?

VLSM (Variable Length Subnet Mask) allows us to create subnets with different mask lengths within the same major network, significantly reducing IP address waste.

Example 1: Simple VLSM (Three Subnets)

Major network: 172.16.0.0/22 (1024 addresses)

Requirements:

  • 60 users → minimum 62 addresses (/26)
  • 20 users → minimum 30 addresses (/27)
  • 10 users → minimum 14 addresses (/28)

Step-by-step allocation:

172.16.0.0/26     → 62 hosts (main users)
172.16.0.64/27    → 30 hosts (secondary users)
172.16.0.96/28    → 14 hosts (servers)
172.16.0.112/28   → 14 hosts (reserved)

Total addresses used: 120 (very low waste).

Example 2: Advanced VLSM (Enterprise Network)

Major network: 10.0.0.0/20 (4096 addresses)

Requirements:

  • 200 users in headquarters → /23
  • 50 users in Branch 1 → /26
  • 20 users in Branch 2 → /27
  • 8 servers → /28
  • 4 printers → /29

Allocation:

10.0.0.0/23      → 510 hosts (headquarters)
10.0.2.0/26      → 62 hosts (Branch 1)
10.0.2.64/27     → 30 hosts (Branch 2)
10.0.2.96/28     → 14 hosts (servers)
10.0.2.112/29    → 6 hosts (printers)

What is Supernetting?

Supernetting (Route Summarization or Aggregation) combines multiple contiguous small networks into a single larger route. This reduces the size of routing tables and improves router performance.

Example 1: Supernetting Four Networks

Existing networks:

192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24

Supernet:

192.168.0.0/22

Binary check for contiguity:

192.168.000.000   11000000 00000000
192.168.003.255   11000000 00000011

Common bits: 22 → /22.

Example 2: Supernetting Eight Networks

Networks: 172.16.16.0/24 to 172.16.23.0/24

Supernet:

172.16.16.0/21

Number of summarized networks: 8 (power of 2) and contiguous.

Complete Combined Scenario: Company Network Design

Company “TechNet” has major network 10.10.0.0/16.

Requirements:

  • 500 headquarters users → /23
  • 100 users in North Branch → /25
  • 50 users in South Branch → /26
  • 30 servers → /27
  • 10 IoT devices → /28

VLSM Allocation:

10.10.0.0/23     → Headquarters users
10.10.2.0/25     → North Branch
10.10.2.128/26   → South Branch
10.10.2.192/27   → Servers
10.10.2.224/28   → IoT devices

Supernetting for the core router:

10.10.0.0/21     → Summarizes all subnets

One single route is advertised instead of five separate routes.

Benefits and Applications

  • CIDR: Dramatically reduces the size of BGP routing tables on the Internet
  • VLSM: Saves up to 70% of IP addresses
  • Supernetting: Reduces router CPU load and improves packet forwarding speed

Comparison Table

CriteriaClassfulCIDR + VLSM + Supernetting
Mask FlexibilityFixedFully Variable
Address WasteHigh (50%+)Less than 10%
Routing Table SizeLargeSmall and Efficient
Current UsageObsoleteStandard for Internet and Enterprise Networks

Conclusion

CIDR, VLSM, and Supernetting are the foundation of modern network design. By practicing the examples above and mastering binary calculations, you can design any network efficiently. These techniques not only conserve IP addresses but also improve router performance and network scalability.

Written & researched by Dr. Shahin Siami

Related Articles

Collision Domain and Broadcast Domain

Collision Domain and Broadcast Domain are two fundamental concepts in Ethernet network design and troubleshooting. A Collision Domain is the portion of a network where packet collisions can occur, while a Broadcast Domain is the portion where broadcast frames are flooded to all devices. Cisco switches separate Collision Domains but not Broadcast Domains (unless VLANs are used), whereas routers separate both. This article explains these concepts in detail, their behavior in Cisco switches and routers, and practical examples.

Continue

Half-Duplex and Full-Duplex in Cisco Devices

Half-Duplex and Full-Duplex are the two primary data transmission modes in Ethernet networks. Half-Duplex allows transmission or reception in only one direction at a time and uses CSMA/CD, while Full-Duplex enables simultaneous sending and receiving, completely eliminating collisions. This article explains the differences between these two modes, how to configure them on Cisco switches and routers, their advantages and disadvantages, and practical examples.

Continue

Basic and Essential Cisco IOS Commands for Device Management

This article provides a complete and practical guide to the most important basic Cisco IOS commands. It covers switching between different modes (enable, disable, exit, configure terminal), setting hostname, entering interface mode, viewing IP information, displaying and managing configurations (running-config and startup-config), as well as commands for saving and erasing configuration. Each command is explained with clear descriptions and practical examples.

Continue

Cisco Device Boot Process and the Role of NVRAM

When a Cisco router or switch is powered on, it follows a specific sequence of steps to become operational. This article provides a complete overview of the Cisco boot process, the role of different memory types (especially NVRAM), startup-config and running-config files, ROMMON mode, and all related commands with practical examples.

Continue

What is Cisco IOS and How It Works

Cisco IOS (Internetwork Operating System) is Cisco’s proprietary operating system that runs on routers, switches, and other networking devices. It provides advanced routing, switching, security, and network management capabilities. This article offers a complete guide covering its structure, different modes, essential commands, configuration examples, and advanced features.

Continue

VLSM and CIDR and Their Role in IP Address Optimization

VLSM and CIDR are two essential concepts in IP addressing that are designed to optimize the use of IP address space. These techniques help network administrators design flexible networks and prevent IP address waste. This article provides a complete explanation of VLSM and CIDR along with practical examples.

Continue