☰ Menu
CLI Open source 10 installs/mo

mapcidr for Mac

mapcidr

Subnet/CIDR operation utility

mapcidr — overview

A utility program to perform multiple operations for a given subnet/CIDR range.

Features • Install • Usage • Library • Join Discord

mapCIDR is developed to ease load distribution for mass scanning operations; it can be used both as a library and as an independent CLI tool.

Features CIDR expansion support (default) CIDR slicing support (sbh, sbc) CIDR/IP aggregation support (a, aa) CIDR/IP matcher support (match-ip) CIDR/IP filter support (filter-ip) CIDR/IP sorting support (s, sr) CIDR host count support (count) Multiple IP Format support (ip-format) IP/PORT shuffling support (si, sp) IPv4/IPv6 Conversation support (t4, t6) CIDR STDIN (pipe) input support

Installation

Usage

This will display help for the tool. Here are all the switches it supports.

Running mapCIDR

To get a list of IPs for a given CIDR, use the following command:

CIDR expansion

It is also possible to get a list of IPs for a given IP range, using the following command:

CIDR Slicing by CIDR Count

To slice given CIDR or list of CIDRs by CIDR count or slice into multiple and equal smaller subnets, use the following command:

CIDR slicing by HOST Count

To slice the given CIDR for an equal number of hosts in each CIDR, use the following command:

Note: It's possible to obtain a perfect split only when the desired number of slices or hosts per subnet is a power of two. Otherwise, the tool will attempt to automatically find the best split strategy to obtain the desired outcome.

CIDR/IP Aggregation

To merge multiple CIDR ranges into a smaller subnet block, use the following command:

To list CIDR blocks for a given list of IPs, use the following command:

It's also possible to perform approximated aggregations for sparse IP groups (only version 4). The final interval will contain contiguous IPs not belonging to the input:

To list CIDR blocks for a given IP Range (IPv4 | IPv6), use the following command:

Match / Filter IPs from CIDR

To match IPs from the given list of CIDR ranges, use the following command:

To filter IPs from the given list of CIDR ranges, use the following command:

IP Formats

To represent given IP into multiple formats, the -if 0 flag can be used to display all the supported format values, and a specific type of format can be displayed using a specific index number as listed here. Currently, 10 unique formats are supported.

IP Conversion

IPv4 | IPv6 addresses can be converted from either the v6 to v4 notation or IPv4-mapped notation into IPv4 addresses using -t4 and -t6 to IPv4 and IPv6 respectively.

Note:

Not all IPv6 addresses can be converted to IPv4. You can only convert valid IPv4-represented IPv6 addresses.

CIDR Host Counting

To count the number of hosts for a given CIDR or list of CIDRs, use the following command:

ASN Input

To get the IP address of the ASN number, use the following command:

Use mapCIDR as a library

Details

子网/CIDR 操作工具

How to install mapcidr

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2025-10-28; current version v1.1.97, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
v1.1.972025-10-28Stable9.4 MBDownloadDownloadDownload
v1.1.962025-10-07Stable9.4 MBDownloadDownloadDownload
v1.1.952025-09-24Stable9.4 MBDownloadDownloadDownload
1.1.942025-06-08Stable8.0 MBDownloadDownloadDownload
v1.1.342024-04-02Stable8.6 MBDownloadDownloadDownload
v1.1.162023-11-23Stable6.9 MBDownloadDownloadDownload
v1.1.152023-11-10Stable6.9 MBDownloadDownloadDownload
v1.1.142023-10-30Stable6.8 MBDownloadDownloadDownload
v1.1.132023-10-22Stable————
v1.1.122023-10-15Stable————

Data from GitHub Releases; stable releases first, each group sorted newest first.

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
mapcidrv1.1.97MITCLI10
bouncebackv1.5.3MITCLI5
sipcalc1.1.6BSD-3-ClauseCLI24
cidrv2.3.0MITCLI3

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…