How it works
Start at the first address. Choose the largest aligned power-of-two block that fits before the inclusive end, emit it, and continue at the next address. No addresses outside the range are added.
Worked example
10.42.7.9–10.42.7.22 becomes .9/32, .10/31, .12/30, .16/30, .20/31 and .22/32, all under 10.42.7.0/24.
Inputs, edge cases & common mistakes
The first address must be at or below the last. A single address becomes /32. The entire IPv4 space becomes 0.0.0.0/0. These blocks describe coverage; /31 entries do not imply that you are configuring point-to-point links.
Technical references
Reviewed 9 September 2026. Found an issue? Send a correction with a reproducible example.