network_subnet_calculator
Compute IPv4 subnet details from CIDR block or IP address with mask. Returns network and broadcast addresses, host range, and other subnet info.
Instructions
IPv4 Subnet Calculator (CIDR / IP+Mask). Compute IPv4 subnet details from a CIDR block (e.g. 192.168.1.0/24) or an IP address plus a dotted-decimal subnet mask. Returns the network and broadcast addresses, the usable host range (first/last host), total and usable host counts, the subnet and wildcard masks, the binary mask, network class, host/network bit split, private-range flag, and a default-class subnet count. Use network_cidr_calculator to convert between CIDR and notation formats, or network_ip_range_calculator to enumerate every address in a block. Pure offline IPv4 math: read-only, non-destructive, contacts no DNS or network service, and is rate-limited (30 requests/minute for anonymous callers).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputFormat | No | Input mode. cidr reads cidrInput; mask reads ipInput plus subnetMask. Defaults to cidr. | cidr |
| cidrInput | No | CIDR block in IP/prefix form, e.g. 192.168.1.0/24. Prefix must be 0-32 and the IP a valid dotted-decimal IPv4 address. Used when inputFormat is cidr. | |
| input | No | Alias for cidrInput accepted for backward compatibility; used only when cidrInput is absent. | |
| ipInput | No | Dotted-decimal IPv4 address (each octet 0-255), e.g. 10.0.0.5. Used when inputFormat is mask. | |
| subnetMask | No | Dotted-decimal subnet mask (contiguous, e.g. 255.255.255.0) paired with ipInput when inputFormat is mask. Converted internally to a CIDR prefix. | |
| worker_id | No | Optional registered healthy worker peer ID. Omit to use the default master-server behavior. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether the request was processed without error. | |
| result | No | Computed subnet details. Optional fields are omitted when valid is false. | |
| error | No | Error message when success is false. |