IPv4 subnet calculator
ipv4_subnetCalculate network, broadcast, host range, mask, and wildcard for an IPv4 CIDR; optionally test if given addresses belong to it.
Instructions
Calculate network, broadcast, host range, mask and wildcard for an IPv4 CIDR (e.g. 192.168.1.10/24 or 10.0.0.0 255.255.0.0). Optionally test whether addresses fall inside it. (Same as IT-Tools /ipv4-subnet-calculator.)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cidr": "<cidr>"
},
"name": "ipv4_subnet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cidr | Yes | "a.b.c.d/nn", "a.b.c.d nn.nn.nn.nn" or a bare address (treated as /32) | |
| contains | No | Addresses to test for membership |