IPv6 Utility JSON API Guide

This API allows you to programmatically interact with the IPv6 subnetting and conversion tools.

📍 Base URL

http://tools.forwardingplane.net/api/

📘 Endpoints

/api/subnets

Generate or count subnets from a given IPv6 prefix.

Query Parameters: Example:
GET /api/subnets?prefix=3ffe::/32&new_prefix=40&limit=5
Response:
{
  "count": 256,
  "subnets": [
    "3ffe::/40",
    "3ffe:0:100::/40",
    "3ffe:0:200::/40",
    ...
  ]
}

/api/convert

Convert between IPv4 and synthesized IPv6 (RFC 6052).

Query Parameters: Example:
GET /api/convert?ip=192.0.2.33&prefix=64:ff9b::
Response:
{
  "result": "64:ff9b::c000:221"
}

/api/decode

Decode a MAC address from an SLAAC IPv6 address (EUI-64 format).

Query Parameters: Example:
GET /api/decode?ipv6=2001:db8::0200:ff:fe00:1234
Response:
{
  "mac": "00:00:00:00:12:34"
}

/api/linklocal

Convert a link-local IPv6 address to a MAC address, or a MAC address to a link-local address.

Query Parameters: Example (MAC → IPv6):
GET /api/linklocal?value=00:1a:2b:3c:4d:5e
Example (IPv6 → MAC):
GET /api/linklocal?value=fe80::1a2b:3cff:fe4d:5e6f
Response:
{
  "result": "00:1a:2b:3c:4d:5e"
}

🛠 Notes

← Back to Home