CIDR Subnet Pro

IPv4 Subnet Mask & Host Range Calculator

RFC 1918 & CIDR Standard

IPv4 CIDR Subnet Calculator

Calculate usable IP address ranges, broadcast addresses, wildcard masks, and visualize 32-bit network and host boundary allocations.

Cloud Networking Compare cloud VPC configurations, managed VPN gateways, and Cisco CCNA network engineering cert courses.

IP & Subnet Configuration

/24 (255.255.255.0)
/8 (Class A) /16 (Class B) /24 (Class C) /32 (Host)
Common Subnets:

🏷 Classification & Routing Scope

Address Scope RFC 1918 Private
Historical Class Class C
Usable Hosts 254 Assignable IPs
Total Subnet IPs 256 2^(32 - CIDR)
Subnet Mask 255.255.255.0 Dotted Decimal

📍 Subnet Boundary Addresses

Network Address (First IP) 192.168.1.0
First Usable Host 192.168.1.1
Last Usable Host 192.168.1.254
Broadcast Address (Last IP) 192.168.1.255
Wildcard Mask (Cisco ACL) 0.0.0.255

01 32-Bit Binary Bit Allocation

Network Bits Host Bits

Understanding IPv4 Subnetting & CIDR Notation

1. The Bitwise Logic of Subnet Masks

An IPv4 address is an unsigned 32-bit integer formatted as 4 octets separated by dots. The subnet mask divides these 32 bits into two segments:

Network ID = IP AND Subnet Mask
Broadcast = Network OR (NOT Subnet Mask)

Any two devices whose IP addresses produce the exact same Network ID can communicate directly over layer-2 Ethernet switches without routing.

2. Special CIDR Prefixes: /31 and /32

Under RFC 3021, point-to-point links between two routers use /31 subnets (2 total IPs), with neither reserved for network or broadcast.

A /32 prefix denotes a single host loopback address or specific firewall rule with exactly 1 usable IP.

Frequently Asked Questions

What happens if I assign the Network Address to a computer?

Operating systems like Windows, Linux, and macOS reject assigning a host IP with all host bits set to 0. It serves as the routing identifier for the entire subnet in IP routing tables. Similarly, assigning the broadcast IP (all 1s) causes packet duplication storms.

Why did CIDR replace legacy Classful networking?

Prior to 1993, IP addresses were rigidly assigned as Class A (/8 = 16 million hosts), Class B (/16 = 65,536 hosts), or Class C (/24 = 254 hosts). Companies needing 500 IPs were forced to take a Class B, wasting 65,000 addresses. Classless Inter-Domain Routing (CIDR) allows arbitrary prefix lengths like /23 (510 hosts), preventing global IPv4 address exhaustion.

What is APIPA / Link-Local 169.254.0.0/16?

If your computer is configured for DHCP but fails to reach a router or DHCP server, the operating system self-assigns an Automatic Private IP Addressing (APIPA) address in the 169.254.0.0/16 range. Seeing a 169.254.x.x address indicates a network cable or Wi-Fi DHCP communication failure.