Crates.io | cidrrr |
lib.rs | cidrrr |
version | 2024.3.22 |
source | src |
created_at | 2024-03-21 15:13:21.523721 |
updated_at | 2024-03-21 21:20:25.638529 |
description | Convert a CIDR block to a list of IPs |
homepage | |
repository | https://github.com/icepuma/cidrrr |
max_upload_size | |
id | 1181730 |
size | 17,943 |
Does the same as cidrr, but with one more r
:D
Makes inspection of IPv4 and IPv6 CIDR blocks a bit easier :)
cargo install cidrrr
# shows the first and last IP of the block
cidrrr 10.105.4.0/24
10.105.4.1
10.105.4.254
# shows all IPs of the block as a JSON array
# running the tool without "--danger-zone" will yield at most "1.048.576" addresses
cidrrr --all --output json 10.105.4.0/24
["10.105.4.1", "10.105.4.2", "10.105.4.3", ..., "10.105.4.253", "10.105.4.254"]