sipcalc

Advanced console-based IP subnet calculator for network analysis

brewmacoslinux
Try with needOr install directly
Source

About

Advanced console-based IP subnet calculator

Commands

sipcalc

Examples

Calculate subnet information for an IPv4 address with CIDR notation$ sipcalc 192.168.1.0/24
Analyze an IP address with traditional netmask notation$ sipcalc 10.0.0.0 255.255.255.0
Display detailed IPv6 subnet information$ sipcalc 2001:db8::/32