# ip dhcp-server

## Syntax

```
[no] ip dhcp-server off|on
```

## Syntax Description

<table><thead><tr><th width="203">Keyword</th><th>Description</th></tr></thead><tbody><tr><td><code>no</code></td><td>(Optional) This is the same as <code>ip dhcp-server off.</code></td></tr><tr><td><code>off</code></td><td>Disables the DHCP server on the interface.</td></tr><tr><td><code>on</code></td><td>Enables the DHCP server on the interface.</td></tr></tbody></table>

## Defaults

The DHCP server is enabled on LAN interfaces and disabled on WAN interfaces by default.

## Usage Guidelines

The DHCP server is responsible for assigning IPv4 address and related options to clients on a connected network.

This command is valid only in interface context. Entering it will set the [interface mode](https://docs.islandrouter.com/island-router-cli-2.3.2/commands/ip-interface-context/ip-autoconfig) to `manual`.

## Examples

```
ip dhcp-server on
```

## Related Commands

{% content-ref url="../interface" %}
[interface](https://docs.islandrouter.com/island-router-cli-2.3.2/commands/interface)
{% endcontent-ref %}

{% content-ref url="ip-dhcp-lease" %}
[ip-dhcp-lease](https://docs.islandrouter.com/island-router-cli-2.3.2/commands/ip-interface-context/ip-dhcp-lease)
{% endcontent-ref %}

{% content-ref url="ip-dhcp-scope" %}
[ip-dhcp-scope](https://docs.islandrouter.com/island-router-cli-2.3.2/commands/ip-interface-context/ip-dhcp-scope)
{% endcontent-ref %}
