ip dhcp-server

Enables or disables the DHCP server on an interface.

Syntax

[no] ip dhcp-server off|on

Syntax Description

Keyword
Description

no

(Optional) This is the same as ip dhcp-server off.

off

Disables the DHCP server on the interface.

on

Enables the DHCP server on the interface.

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 to manual.

Examples

ip dhcp-server on
interfaceip dhcp-leaseip dhcp-scope

Last updated