subnet_calc
Calculate subnet details from a CIDR or address plus mask, returning network, netmask, wildcard, broadcast, usable host range, and counts for IPv4 and IPv6, including correct /31 and /32 handling.
Instructions
Work out a subnet from a CIDR or an address plus dotted mask: network, netmask, wildcard, broadcast, usable host range and counts. IPv4 and IPv6. Handles /31 point-to-point and /32 host routes correctly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cidr | Yes | e.g. 10.10.1.0/24, 192.168.1.37/255.255.255.0, or 2001:db8::/48 |