Why a range becomes several blocks
A CIDR block (RFC 4632) always holds a power of two of addresses and must start on a multiple of its size. A range that doesn't line up, like 10.0.0.5 to 10.0.0.100, has to be split: here into 10.0.0.5/32, 10.0.0.6/31, 10.0.0.8/29, 10.0.0.16/28, 10.0.0.32/27, 10.0.0.64/27, 10.0.0.96/30 and 10.0.0.100/32, together exactly the 96 addresses of the range and nothing else.
Where you need this
- Cloud firewall and security-group rules, which only accept CIDR blocks.
- Allow-lists for APIs, databases and admin panels.
- Turning a provider's published address range into rules.
Need the mask, broadcast address and host count of one block? Use the subnet calculator.
Sources
- RFC 4632: Classless Inter-domain Routing (CIDR): www.rfc-editor.org/rfc/rfc4632