#cidr #ipv4 #ipv6 #ip

app cidrrr

Convert a CIDR block to a list of IPs

3 stable releases

new 2025.4.18 Apr 18, 2025
2024.3.22 Mar 21, 2024

#445 in Network programming

Download history 9/week @ 2025-02-11 4/week @ 2025-02-18 1/week @ 2025-02-25 2/week @ 2025-03-04 132/week @ 2025-04-15

132 downloads per month

Custom license

8KB
135 lines

cidrrr

Does the same as cidrr, but with one more r :D

Makes inspection of IPv4 and IPv6 CIDR blocks a bit easier :)

Installation

cargo install cidrrr

Usage

# 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"]

Dependencies

~1.3–2MB
~38K SLoC