---
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 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.net/guardllamanet/apis/adguard-home.md) · [All operations](https://skmtc.net/guardllamanet/apis/adguard-home/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/guardllamanet/adguard-home/versions/14ff21aeb363/schema)
