feature dhcp

To enable the Dynamic Host Configuration Protocol (DHCP) snooping feature on the device, use the feature dhcp command. To disable the DHCP snooping feature and remove all configuration related to DHCP snooping, including DHCP relay, dynamic ARP inspection (DAI), and IP Source Guard configuration, use the no form of this command.

feature dhcp

no feature dhcp

Syntax Description

This command has no arguments or keywords.

Command Default


Command Modes

Global configuration mode

Command History

This command was introduced.

Usage Guidelines

The DHCP snooping feature is disabled by default. DHCP snooping can be enabled or disabled on VLANs.

If you have not enabled the DHCP snooping feature, commands related to DCHP snooping are unavailable.

Dynamic ARP inspection and IP Source Guard depend upon the DHCP snooping feature.

If you disable the DHCP snooping feature, the device discards all configuration related to DHCP snooping configuration, including the following features:

If you want to turn off DHCP snooping and preserve configuration related to DHCP snooping, disable DHCP snooping globally with the no ip dhcp snooping command.

Access-control list (ACL) statistics are not supported if the DHCP snooping feature is enabled.


This example shows how to enable DHCP snooping:

switch(config)# feature dhcp

This example shows how to disable DHCP snooping:

switch(config)# no feature dhcp

Related Commands

copy running-config startup-config
Copies the running configuration to the startup configuration.
ip dhcp snooping
Globally enables DHCP snooping on the device.
service dhcp
Enables or disables the DHCP relay agent.
show running-config dhcp
Displays DHCP snooping configuration, including IP Source Guard configuration.