Master IP subnetting, CIDR notation, subnet masks, and network ranges with practical examples and a free calculator.
An IPv4 address is a 32-bit number written as four octets: 192.168.1.100. Each octet ranges 0-255. The address has two parts: network (identifies the network) and host (identifies the device).
| Range | CIDR | Addresses | Use |
|---|---|---|---|
| 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | 16.7M | Large networks |
| 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | 1.05M | Medium networks |
| 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | 65,536 | Home/office |
CIDR (Classless Inter-Domain Routing) notation specifies the IP and prefix length: 192.168.1.0/24. The prefix length tells how many bits are the network part.
| CIDR | Subnet Mask | Usable Hosts | Typical Use |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 | Large ISPs |
| /16 | 255.255.0.0 | 65,534 | Large orgs |
| /24 | 255.255.255.0 | 254 | Small offices |
| /28 | 255.255.255.240 | 14 | Small subnets |
| /30 | 255.255.255.252 | 2 | Point-to-point |
| /32 | 255.255.255.255 | 1 | Single host |
A subnet mask uses 1s for network bits and 0s for host bits. ANDing an IP with its mask gives the network address:
IP: 192.168.1.100 = 11000000.10101000.00000001.01100100
Mask: 255.255.255.0 = 11111111.11111111.11111111.00000000
AND: 192.168.1.0 = 11000000.10101000.00000001.00000000For 192.168.10.0/24:
Use NetTool1 Subnet Calculator to get network, broadcast, host range, and wildcard mask instantly.
IPv6 uses 128-bit addresses: 2001:0db8:85a3::8a2e:0370:7334. Standard allocation uses /48 for organizations and /64 for individual subnets.
| Prefix | Use | Subnets |
|---|---|---|
| /32 | ISP allocation | 65,536 /48s |
| /48 | Organization | 65,536 /64s |
| /64 | Single LAN segment | 18 quintillion hosts |