Subnet Split
subnet_splitSplit an IP prefix into smaller subnets for both IPv4 and IPv6, enabling network segmentation by breaking down large blocks into a desired prefix length.
Instructions
Split an IP prefix into smaller subnets.
For example, split 10.0.0.0/24 into /26s to get 4 subnets. Works with both IPv4 and IPv6.
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": {
"prefix": "<prefix>",
"new_prefix_length": "<new_prefix_length>"
},
"name": "subnet_split"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | Yes | IP prefix to split (e.g. '10.0.0.0/24') | |
| new_prefix_length | Yes | New prefix length for subnets (must be longer than current) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Total subnet count; a decimal string when it exceeds 2^53 (large IPv6 splits) | |
| subnets | Yes | ||
| original | Yes | ||
| new_prefix_length | Yes |