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.
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 |