IPv4 CIDR contains

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

Test whether one IPv4 CIDR block fully contains another IPv4 CIDR block.

Use when you need to: ipv4 cidr contains · ipv4 subnet contains subnet · check ipv4 cidr containment.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "outer": "10.0.0.0/8",
  "inner": "10.1.0.0/16"
}

Response:

{
  "result": {
    "contains": true,
    "outer_network": "10.0.0.0/8",
    "inner_network": "10.1.0.0/16"
  }
}

How to call it

MCP

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

{
  "id": "ipv4-cidr-contains",
  "version": "1.0.0",
  "input": {
    "outer": "10.0.0.0/8",
    "inner": "10.1.0.0/16"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/ipv4-cidr-contains/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"outer":"10.0.0.0/8","inner":"10.1.0.0/16"}'

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

CLI

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

Get the client at /clients/cli/.