CLI tool for IPv4/IPv6 CIDR network management with range explanation, overlap checking, counting, and subnet division
cidr is a command-line tool for managing IPv4 and IPv6 CIDR network prefixes. It provides essential network operations including detailed range explanations with base addresses, usable ranges, broadcast addresses, and netmasks. The tool can determine if an IP address belongs to a specific CIDR range and count total addresses within any given network prefix.
The tool supports network overlap detection between CIDR ranges and can divide networks into smaller subnets. For example, it can split a /16 network into 9 distinct /20 subnets or check if 10.0.0.0/16 overlaps with 10.0.14.0/22. All operations work with both IPv4 and IPv6 networks, handling everything from large corporate networks to point-to-point links.
Network administrators, DevOps engineers, and cloud infrastructure teams use cidr for subnet planning, IP address management, and network troubleshooting. The tool outputs structured information that can be easily parsed by scripts or used directly for documentation and network design validation.
# via Homebrew
brew install cidr
# via APT
apt install cidr