Address range
Calculate an inclusive same-family range and generate the smallest aligned CIDR set with no extra addresses.
192.168.1.1 — 192.168.1.254
- Total addresses
- 254
- CIDRs: 14
- 14
Minimal exact CIDR coverNo addresses outside the range
192.168.1.1/32192.168.1.2/31192.168.1.4/30192.168.1.8/29192.168.1.16/28192.168.1.32/27192.168.1.64/26192.168.1.128/26192.168.1.192/27192.168.1.224/28192.168.1.240/29192.168.1.248/30192.168.1.252/31192.168.1.254/32Understanding IP ranges and CIDR
Enter start and end IPs from the same address family. Calculate the inclusive count and the smallest set of CIDR blocks covering the range without adding extra addresses.
Aligned range256 addresses
- IP range
- 192.168.1.0—192.168.1.255
- CIDR coverage
- 192.168.1.0/24
Across a boundary16 addresses
- IP range
- 192.168.1.8—192.168.1.23
- CIDR coverage
- 192.168.1.8/29192.168.1.16/29
Both endpoints includedAddress count = end − start + 1.