# cidr

> CLI tool for IPv4/IPv6 CIDR network prefix management with counting, overlap checking, explanation, and subdivision.

Stars: 245 · Categories: Network

- Repository: https://github.com/bschaatsbergen/cidr
- Website: https://formulae.brew.sh/formula/cidr
- Page: https://www.trmn.sh/tools/cidr

## Install

- Homebrew: `brew install cidr`
- APT: `apt install cidr`

## Overview

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

```bash
# via Homebrew
brew install cidr
```

```bash
# via APT
apt install cidr
```

## Alternatives

- [aim](https://www.trmn.sh/tools/aim.md): Command line download/upload tool with resume support for HTTP(S), FTP, SFTP, SSH, and S3 protocols (193 stars)
- [domain-check](https://www.trmn.sh/tools/domain-check.md): CLI tool for fast domain availability checking across 1,200+ TLDs with RDAP/WHOIS support and batch processing (306 stars)
- [glooctl](https://www.trmn.sh/tools/glooctl.md): Kubernetes-native API gateway and ingress controller built on Envoy proxy with Gateway API conformance (172 stars)
- [lssh](https://www.trmn.sh/tools/lssh.md): TUI-based SSH client for managing multiple servers with parallel commands and local bashrc forwarding (Go, 328 stars)
- [dnspyre](https://www.trmn.sh/tools/dnspyre.md): Command-line DNS benchmark tool for stress testing and measuring DNS server performance across UDP, TCP, DoT, DoH, and DoQ protocols. (334 stars)

---

Canonical: https://www.trmn.sh/tools/cidr
