---
title: "Give this cluster its own VXLAN network ID (ADR 062)"
method: POST
path: "/settings/cluster-network/network-id"
tags: ["Nodes"]
---

# Give this cluster its own VXLAN network ID (ADR 062)

`POST /settings/cluster-network/network-id`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/settings/cluster-network/network-id`
- Auth: HTTP bearer

Assigns a fresh random network ID. Every node's overlay, and the control
plane's, is rebuilt on it at its next reconcile; cross-node traffic pauses
until each one has. Refused while a node's agent has not reported that it
can follow a new network ID.

## Response `200`

Network ID changed

- ClusterNetworkIdChangeResponse: `POST /settings/cluster-network/network-id` answer.
  - `change` NetworkIdChange, required: `POST /settings/cluster-network/network-id` answer.
    - `from` integer, required
    - `to` integer, required
  - `status` ClusterNetworkStatus, required: `GET /settings/cluster-network`.
    - `can_change` boolean, required: Whether `PUT` can change the pool now.
    - `can_change_network_id` boolean, required: Whether `POST /settings/cluster-network/network-id` can assign a new network ID now, and why not: the nodes that could not follow it.
    - `change_blocked_by` string[], required: Why it cannot: the members using the pool, or a control-plane setup in progress.
    - `compute_pool_cidr` string, required
    - `control_plane` ClusterNetworkControlPlane, required: The control plane's overlay.
      - `compute_cidr` string, nullable
      - `overlay_ready` boolean, required
      - `setup_failure` string, nullable: Why its last overlay setup failed, with the fix, when it did.
    - `default_compute_pool_cidr` string, required: What a new cluster starts with.
    - `mesh_enabled` boolean, required
    - `mesh_pool_cidr` string, required: The WireGuard mesh pool; a compute pool may not overlap it.
    - `network_id_change_blocked_by` string[], required
    - `nodes` ClusterNetworkNode[], required
      - `compute_cidr` string, nullable: Its subnet of the pool, if allocated.
      - `id` integer, required
      - `in_use` boolean, required: Whether its allocation locks the pool, and why when it does.
      - `in_use_reason` string, nullable
      - `name` string, required
      - `occupied_ranges` OccupiedRangeReport[], required: What the node reported it already uses outside Temps.
        - `cidr` string, required: IPv4 network, e.g. `172.20.0.0/16`.
        - `name` string, required: Device name for a route, network name for a Docker network.
        - `source` string, required: `route` (a host route) or `docker` (a Docker network's subnet).
      - `overlay_last_error` string, nullable: Why the overlay is unavailable: the colliding range, its owner and the fixes.
      - `overlay_network_name` string, required: The overlay network name it uses: its own when `temps join` found the cluster's name taken on its host, else the cluster's (ADR 059).
      - `overlay_remediation` string, nullable: The last automatic move of its allocation, and why.
      - `overlay_status` string, nullable: `ready`, `unavailable`, or `None` when its agent never reported it.
      - `vxlan_id_in_use` boolean, required: Whether its overlay is unavailable because another VXLAN device on its host holds the cluster's network ID; giving the cluster its own network ID fixes that without touching the host.
      - `vxlan_network_id` integer, nullable: The VXLAN network ID its agent reports it follows (ADR 062). `None`: its agent predates per-cluster network IDs, or never reported.
    - `overlay_network_name` string, required: The cluster's overlay network name (ADR 059): the Docker network `<name>`, bridge `br-<name>` and VXLAN device `vxlan-<name>` on each host whose node does not override it.
    - `pool_confirmed` boolean, required: Whether an operator has confirmed the pool, or a member already uses it. The console asks for it once before adding the first node.
    - `subnet_prefix_len` integer, required
    - `vxlan_network_id` integer, required: The cluster's VXLAN network ID and UDP port (ADR 062).
    - `vxlan_port` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `409`: A node cannot follow a new network ID yet; the detail names it and the fix
- `428`: Re-authentication required
- `500`: Internal server error

## Changes

- **2026-11-12** `e052e98bb073`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/settings/cluster-network/network-id/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
