⚡ 100% In-Browser & Private: Your data never leaves your computer. Powered by Cloudflare Edge CDN.
ProWebTools PRO
Developer & SEO Utilities
Networking & Cloud • 8 min read • Published 2026-11-07

The Complete Guide to CIDR Subnetting: IPv4 Masks, Supernetting & Cloud VPC Design

Classless Inter-Domain Routing (CIDR) replaced rigid classful IP architectures in 1993 and remains the foundation of modern internet routing and cloud VPC topology. Learn how binary prefix masks allocate IP addresses, calculate usable host capacities, and prevent subnet overlap in AWS, GCP, and Cloudflare.

PWT
ProWebTools Engineering Team Verified Technical Publication

1. The Evolution from Classful to CIDR Routing

In the original IPv4 specification (RFC 791), addresses were rigidly partitioned into Class A (/8), Class B (/16), and Class C (/24) networks. An organization needing 300 IP addresses was forced to request a Class B block (65,536 addresses), wasting over 65,000 routable IPs.

Introduced in RFC 1519, CIDR allows variable-length subnet masks (VLSM), enabling network architects to split address spaces into blocks tailored to exact requirements.

2. Understanding CIDR Binary Prefix Mathematics

An IPv4 address consists of 32 bits divided into four 8-bit octets. The CIDR prefix (e.g. /24) designates how many bits belong to the network identifier, while the remaining bits belong to host addresses:

  • Host Bit Formula: For a prefix of length $n$, available host bits equal $32 - n$.
  • Total IP Addresses: $2^{(32 - n)}$.
  • Usable Host Addresses: $2^{(32 - n)} - 2$ (subtracting 1 for the Network Address and 1 for the Broadcast Address).

For example, a /28 subnet has $32 - 28 = 4$ host bits, yielding $2^4 = 16$ total IPs and $14$ usable hosts.

3. RFC 1918 Private Address Allocations

When provisioning Cloud VPCs or enterprise corporate LANs, network engineers rely on non-routable private IP blocks reserved under RFC 1918:

  • 10.0.0.0/8 (10.0.0.0 – 10.255.255.255): 16,777,216 addresses (Ideal for large enterprises).
  • 172.16.0.0/12 (172.16.0.0 – 172.31.255.255): 1,048,576 addresses.
  • 192.168.0.0/16 (192.168.0.0 – 192.168.255.255): 65,536 addresses (Standard home/office routers).

4. Related Interactive Utilities

Explore 80+ Developer Utilities

All tools execute 100% in-browser with zero server logging.

Browse All Tools →