cidit 0.0.22

CIDR Inspection Tool
cidit-0.0.22 is not a library.

CIDR calculator for CLI

Calculate Network Ranges for a given CIDR.

For example, 10.122.33.44/24 prints out the following information:

Subnet mask: 255.255.255.0
First usable IP: 10.122.33.1
Last usable IP: 10.122.33.254
Broadcast IP: 10.122.33.255

CIDR stands for Classless Inter-Domain Routing. Learn more about CIDR here or here.

Install binary

With Homebrew (recommended)

brew tap hex22a/cidit
brew install cidit

Compile from sources

Install Rust

Clone this repo:

git clone git@github.com:hex22a/cidit.git && cd ./cidit

Run tests:

cargo test

Build the binary

cargo build

This will create a binary in target > debug directory

Run

cd target/debug
# ./cidit --help is also supported
./cidit 10.122.33.44/24

or alternatively You can run it via cargo from the project root

cargo run -- 10.122.33.44/24