Users Guide

Table Of Contents
Layer 2 Switching Commands 351
Example
console#clear ip dhcp snooping statistics
ip dhcp snooping
Use the ip dhcp snooping command to enable DHCP snooping globally, or
on a range of VLANs. Use the “no” form of this command to disable DHCP
snooping.
Syntax
ip dhcp snooping [vlan vlan-list]
no ip dhcp snooping
Default Configuration
DHCP Snooping is globally disabled by default. DHCP Snooping is not
enabled on any VLAN by default.
Command Mode
Global Configuration mode
User Guidelines
To enable DHCP snooping, do the following:
1
Enable DHCP Snooping globally.
2
Enable DHCP Snooping per VLAN.
3
Configure at least one DHCP Snooping trusted port via which the DHCP
server may be reached.
The bindings database populated by DHCP snooping is used by several other
services, including IP source guard and dynamic ARP inspection. DHCP
snooping must be enabled for these services to operate.
Example
The following configuration enables DHCP snooping on VLAN 1 for a switch
connected to a DHCP server over interface gi1/0/4:
console(config)#ip dhcp snooping
console(config)#ip dhcp snooping vlan 1