IPv4 CIDR subnets

ipv4-cidr-subnets · version 1.0.0 · URLs & IP addresses · free, no key needed

Split an IPv4 CIDR block into the full ordered list of equal-size subnets at a given longer prefix.

Use when you need to: ipv4 cidr subnets · split ipv4 cidr into subnets · ipv4 subnetting.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "cidr": "192.168.1.0/24",
  "new_prefix": 26
}

Response:

{
  "result": {
    "subnets": [
      "192.168.1.0/26",
      "192.168.1.64/26",
      "192.168.1.128/26",
      "192.168.1.192/26"
    ],
    "count": 4
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "ipv4-cidr-subnets",
  "version": "1.0.0",
  "input": {
    "cidr": "192.168.1.0/24",
    "new_prefix": 26
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/ipv4-cidr-subnets/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"cidr":"192.168.1.0/24","new_prefix":26}'

The machine-readable contract is at /v1/tools/ipv4-cidr-subnets/versions/1.0.0.

CLI

node cli.mjs run ipv4-cidr-subnets 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.