| Address Component | Dotted Decimal Format | 32-Bit Binary Representation |
|---|
Understanding IPv4 Subnetting and CIDR Masks
Subnetting is the practice of dividing a physical network into two or more smaller, logical sub-networks (subnets). Network administrators use IPv4 subnet calculators to optimize IP address allocation, enhance routing performance, and improve network security segmentation across Enterprise LANs, Cloud Infrastructure, and Data Centers.
Key Subnetting Terminology Explained
- Network ID: The first IP address in a subnet, used to identify the network boundary. It cannot be assigned to an individual network interface card (NIC).
- Broadcast Address: The highest IP address in a subnet, reserved for transmitting data to all hosts on the subnet simultaneously.
- Usable Host Range: The block of valid IP addresses between the Network ID and Broadcast Address that can be assigned to devices such as routers, servers, workstations, and mobile devices.
- Subnet Mask: A 32-bit number that separates the IP address into Network bits and Host bits.
- Wildcard Mask: The inverse of a subnet mask (calculated by subtracting the subnet mask from 255.255.255.255), heavily used in Cisco router Access Control Lists (ACLs) and OSPF routing configurations.
IPv4 CIDR Prefix Reference Table
The table below provides a full reference guide for standard IPv4 subnet masks, CIDR prefixes, and usable host capacities:
| CIDR Prefix | Subnet Mask | Total IPs | Usable Hosts | Common Use Case |
|---|---|---|---|---|
| /30 | 255.255.255.252 | 4 | 2 | Point-to-Point Router Serial Links |
| /29 | 255.255.255.248 | 8 | 6 | Small Public Static IP Blocks |
| /28 | 255.255.255.240 | 16 | 14 | Small Branch Office / DMZ Segment |
| /24 | 255.255.255.0 | 256 | 254 | Standard Local Area Network (LAN) |
| /23 | 255.255.254.0 | 512 | 510 | Medium Enterprise Office Subnet |
| /16 | 255.255.0.0 | 65,536 | 65,534 | Large Corporate Network / Cloud VPC |
Frequently Asked Questions (FAQs)
What is CIDR notation in IP subnetting?
CIDR (Classless Inter-Domain Routing) notation represents a subnet mask as a slash followed by the count of leading 1-bits in the mask (e.g., /24 equals a subnet mask of 255.255.255.0).
How is the number of usable hosts calculated in a subnet?
The total number of IP addresses in a subnet is 2^(32 – CIDR). The number of usable host addresses is typically 2^(32 – CIDR) – 2, deducting one address for the Network ID and one for the Broadcast address.
What is the difference between Network Address and Broadcast Address?
The Network Address is the lowest IP in a subnet and identifies the network itself. The Broadcast Address is the highest IP in the subnet, used to transmit data packets to all hosts on that network simultaneously.
What are private IP address ranges?
Private IPv4 ranges reserved for local area networks (LANs) under RFC 1918 include Class A (10.0.0.0/8), Class B (172.16.0.0/12), and Class C (192.168.0.0/16).
