cidr
CLI tool for IPv4/IPv6 CIDR network prefix management with counting, overlap checking, explanation, and subdivision.
cidr is a command-line tool for managing IPv4 and IPv6 CIDR network prefixes. It provides essential network administration functions through a simple interface, supporting both address families with identical command syntax.
The tool offers several core operations: explaining CIDR ranges with detailed network information including base address, usable range, broadcast address, and netmask; checking if specific IP addresses belong to a given CIDR range; counting total addresses within a network prefix; detecting overlaps between different CIDR ranges; and dividing networks into smaller subnets.
Network administrators, DevOps engineers, and system administrators working with IP address planning and network segmentation would find this tool useful. The consistent command structure works across both IPv4 and IPv6, making it suitable for dual-stack network environments. Commands like cidr explain 10.0.0.0/16 provide comprehensive network details, while cidr divide 10.0.0.0/16 9 splits networks into smaller subnets for subnet planning.
Installation
# via Homebrew
brew install cidr
# via APT
apt install cidr
Alternatives & related tools
aim
Command line download/upload tool with resume support for HTTP(S), FTP, SFTP, SSH, and S3 protocols
domain-check
CLI tool for fast domain availability checking across 1,200+ TLDs with RDAP/WHOIS support and batch processing
glooctl
Kubernetes-native API gateway and ingress controller built on Envoy proxy with Gateway API conformance
lssh
TUI-based SSH client for managing multiple servers with parallel commands and local bashrc forwarding
dnspyre
Command-line DNS benchmark tool for stress testing and measuring DNS server performance across UDP, TCP, DoT, DoH, and DoQ protocols.
add a badge to your README
Maintain cidr? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/cidr?utm_source=badge)<a href="https://www.trmn.sh/tools/cidr?utm_source=badge"><img src="https://www.trmn.sh/badge/cidr.svg" alt="Featured on trmn" height="20"></a>