---
title: "Updates the current DHCP server configuration"
method: POST
path: "/dhcp/set_config"
tags: ["dhcp"]
---

# Updates the current DHCP server configuration

`POST /dhcp/set_config`

## Request

- Base URL: `/control` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/control/dhcp/set_config`
- Auth: HTTP basic

## Request body

- DhcpConfig
  - `enabled` boolean
  - `interface_name` string
  - `v4` DhcpConfigV4
    - `gateway_ip` string
    - `subnet_mask` string
    - `range_start` string
    - `range_end` string
    - `lease_duration` integer
  - `v6` DhcpConfigV6
    - `range_start` string
    - `lease_duration` integer

## Response `200`

OK.

## Other responses

- `501`: Not implemented (for example, on Windows).

---

[API](https://skmtc.dev/guardllamanet/apis/adguard-home.md) - [All operations](https://skmtc.dev/guardllamanet/apis/adguard-home/llms.txt) - [OpenAPI document](https://skmtc.dev/guardllamanet/apis/adguard-home/revisions/14ff21aeb363?raw)
