Enter an IPv4 address and CIDR prefix — or a subnet mask, if that's what you've got — to instantly see the network, broadcast, and usable host range, plus a live bit-level view of where the network ID ends and the host ID begins.
Other Possible Networks
Every network of the same size within this block — click one to load it above.
What Is Subnetting?
Subnetting is the process of taking one large IP network and
splitting it into smaller, self-contained pieces called
subnets. Every IPv4 address is really two parts glued
together — a network portion and a host portion — and the
subnet mask (or CIDR prefix, like /26) is what
tells a router where that split happens.
Think of a large office building with a single street address. Subnetting is like assigning each floor its own suite number — mail still reaches the same building, but now it can be routed to the right floor without every piece of mail needing to be sorted by hand.
Why Subnetting Is Used
- Efficient address allocation. Instead of wasting a full /24 (254 usable hosts) on a point-to-point link that only needs 2 addresses, you can carve out a /30 and use the rest elsewhere.
- Smaller broadcast domains. Broadcast traffic stays inside its own subnet, so a large flat network doesn't slow down every device with traffic it doesn't need.
- Security and segmentation. Separating departments, VLANs, or trust zones onto different subnets makes it much easier to apply firewall rules and ACLs between them.
- Cleaner routing. Well-planned subnets can often be summarized into a single route advertisement, keeping routing tables smaller and easier to troubleshoot.
- Fault isolation. A Layer 2 issue on one subnet is contained instead of taking down the entire network.
Key Terms to Know
- Network address — the first address in a subnet, used to identify the subnet itself. Never assigned to a host.
- Broadcast address — the last address in a subnet, used to reach every host on it at once. Also never assigned to a host.
- Usable host range — every address between the network and broadcast address; the ones you can actually assign to devices.
- CIDR notation — the
/nshorthand for a subnet mask, wherenis the number of network bits. - Wildcard mask — the inverse of the subnet mask, used in Cisco ACLs and OSPF network statements.
- VLSM — using different subnet sizes within the same network to match the actual number of hosts each segment needs.
Quick CIDR Reference
| CIDR | Subnet Mask | Usable Hosts |
|---|---|---|
| /24 | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /26 | 255.255.255.192 | 62 |
| /27 | 255.255.255.224 | 30 |
| /28 | 255.255.255.240 | 14 |
| /29 | 255.255.255.248 | 6 |
| /30 | 255.255.255.252 | 2 (point-to-point) |