cidrmerge
« Back to VersTracker
Description:
CIDR merging with network exclusion
Type: Formula  |  Latest Version: 1.5.3@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Networking
Tags: networking cidr ip-address cli sysadmin
Install: brew install cidrmerge
About:
cidrmerge is a command-line utility designed to merge and manipulate CIDR (Classless Inter-Domain Routing) IP address blocks. It intelligently combines adjacent or overlapping network ranges into a minimal set of CIDR notations while also supporting the exclusion of specific subnets from larger blocks. This tool is essential for network administrators needing to optimize routing tables, simplify firewall rules, and manage IP address allocations efficiently.
Key Features:
  • Efficiently merges adjacent and overlapping CIDR blocks
  • Supports network exclusion to subtract subnets from larger ranges
  • Parses and outputs standard CIDR notation for easy integration
  • Lightweight command-line interface for scripting and automation
Use Cases:
  • Optimizing firewall rule sets by reducing the number of CIDR entries
  • Calculating aggregated network ranges for routing table configuration
  • Cleaning up IP address lists by merging contiguous blocks
  • Generating IP blacklists with specific exclusions
Alternatives:
  • netaddr – A Python library offering similar functionality but requires a Python runtime rather than a standalone binary.
  • ipcalc – A broader network calculation tool that includes CIDR merging features alongside subnetting and broadcast calculations.
License: GPL-2.0-or-later
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, arm64_monterey, arm64_big_sur, sonoma, ventura, monterey, big_sur, catalina, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 12, 2025 8:37pm 0 VERSION_BUMP b0fbf160