range2cidr
« Back to VersTracker
Description:
Converts IP ranges to CIDRs
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Networking
Tags: networking cli ip-address cidr devops
Install: brew install range2cidr
About:
Range2cidr is a utility that converts contiguous IP address ranges into the corresponding CIDR notation. It streamlines network planning by translating start and end IPs into a minimal set of subnet masks. This tool is essential for optimizing routing tables and firewall rule configurations.
Key Features:
  • Efficiently merges overlapping IP ranges
  • Outputs standard CIDR notation
  • Command-line interface for automation
  • Handles large datasets
Use Cases:
  • Converting firewall allow-lists to CIDR blocks
  • Planning subnet allocation for cloud networks
  • Auditing network access controls
Alternatives:
  • netmask – Standard Unix tool for network mask manipulation, but less focused on range-to-CIDR conversion.
  • ipcalc – Calculates network addresses and broadcast ranges, often used for subnetting analysis.
Version History
Detected Version Rev Change Commit
Oct 9, 2025 8:06pm 0 VERSION_BUMP 4d9fdfe8
Sep 14, 2024 1:30am 0 VERSION_BUMP 6248873c