mapcidr

Perform subnet and CIDR notation operations efficiently

brewmacoslinux
Try with needOr install directly
Source

About

Subnet/CIDR operation utility

Commands

mapcidr

Examples

Expand a CIDR range to individual IP addresses$ mapcidr -cidr 192.168.1.0/24
Aggregate multiple CIDR blocks into optimized ranges$ mapcidr -aggregate 192.168.1.0/24,192.168.2.0/24
Split a CIDR block into smaller subnets$ mapcidr -cidr 10.0.0.0/16 -split 24