DGS-6604
ip dhcp snooping
CLI Reference Guide
233
ip dhcp snooping
Use this command to globally enable DHCP snooping. Use no command to
disable DHCP snooping.
ip dhcp snooping
no ip dhcp snooping
Syntax
None
Default
Disabled
Command Mode
Global configuration
Usage Guideline
The DHCP snooping function snoops the DHCP packets arriving at the un-
trusted interface on VLAN that is enabled for DHCP snooping. With this function,
the DHCP packets coming from the un-trusted interface can be validated, and a
DHCP binding database will be constructed for the DHCP snooping enabled
VLAN. The binding database provides IP and MAC binding information that can
be further used by the IP source guard and dynamic ARP inspection process.
Use the ip dhcp snooping command to globally enable DHCP snooping. Use the
ip dhcp snooping vlan command to enable DHCP snooping for a VLAN. DHCP
snooping process occurs during the relay agent relays the packet. To enable the
DHCP relay service, relay agent service must be enabled by service dhcp
command, and the server address to relay the packet must be configured by the
ip dhcp relay address.
Example
These examples shows how to enable and disable DHCP snooping:
Switch# configure terminal
Switch(config)# ip dhcp snooping
Switch(config)#
-------------------------------------------
Switch# configure terminal
Switch(config)# no ip dhcp snooping
Switch(config)#