Learn

IPv4 Range Expander Guide

About this tool

Given a start and end address, list the CIDR blocks that cover the range exactly, so you can turn an arbitrary range into something a firewall or a route table will accept.

Questions

Why does it return several blocks instead of one?
CIDR blocks are always powers of two, so an arbitrary range almost never lands on one. The tool finds the smallest set of blocks that covers it without going over.