service dhcp

To enable the DHCP server in the switch and relay agent features on router that assigns unique IP addresses and other configuration parameters to interfaces of a DHCP client, use the command service dhcp in Global Configuration Mode.The no form of this command disables the DHCP Server. This command is a complete standardized implementation of the existing command and operates similar to that of the command service dhcp-server.

service dhcp

service dhcp

no service dhcp

no service dhcp

Mode

Global Configuration Mode

Default

DHCP server is disabled

Prerequisites

The DHCP server can be enabled in the switch, only if the DHCP relay agent is disabled in the switch.

Examples

iS5Comm(config)# service dhcp