{"repo":"bschaatsbergen/cidr","free":true,"listed":false,"github":"https://github.com/bschaatsbergen/cidr","clone":"git clone https://github.com/bschaatsbergen/cidr.git","description":"Simplifies IPv4/IPv6 CIDR network prefix management with counting, overlap checking, explanation, and subdivision.","language":"Go","stars":242,"topics":["cidr","cli","cobra","go","ipv4","ipv6","homebrew"],"license":"MIT","category":"cli-tools","readme_excerpt":"cidr Simplifies IPv4/IPv6 CIDR network prefix management with counting, overlap checking, explanation, and subdivision. Brew To install cidr using brew, simply run: Debian (Trixie and newer) & Ubuntu (Oracular and newer) To install cidr using apt, simply run: Binaries You can download the latest binary for Linux, MacOS, and Windows. Examples Using cidr is very simple. Explain a CIDR range To get more information on a CIDR range: This also works with IPv6 CIDR ranges, for example: Check whether an address belongs to a CIDR range To check if a CIDR range contains an IP: This also works with IPv6 addresses, for example: Count To get a count of all addresses in a CIDR range: This also works with a IPv6 CIDR range, for example: Or with a large prefix like a point-to-point link CIDR range: CIDR range intersection To check if a CIDR range overlaps with another CIDR range: This also works with IPv6 CIDR ranges, for example: CIDR division To divide a CIDR range into N distinct networks: This also works with IPv6 CIDR ranges, for example: Contributing Contributions are highly appreciated and always welcome. Have a look through existing Issues and Pull Requests that you could help with.","default_branch":null,"files":null,"tree":[],"storefront":"/r/bschaatsbergen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bschaatsbergen/cidr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}