2-277
Catalyst 3750-X and 3560-X Switch Command Reference
OL-29704-01
Chapter 2 Catalyst 3750-X and 3560-X Switch Cisco IOS Commands
ip dhcp snooping vlan
ip dhcp snooping vlan
To enable DHCP snooping on a VLAN or to enable DHCP snooping smart logging on the VLAN, use
the ip dhcp snooping vlan command in global configuration mode. To return to the default setting, use
the no form of this command.
ip dhcp snooping vlan vlan-range [smartlog]
no ip dhcp snooping vlan vlan-range [smartlog]
Syntax Description
Defaults DHCP snooping is disabled on all VLANs.
DHCP smart logging is disabled.
Command Modes Global configuration
Command History
Usage Guidelines You must first globally enable DHCP snooping by entering the ip dhcp snooping global configuration
command before enabling DHCP snooping on a VLAN.
DHCP snooping intercepts and inspects DHCP packets entering untrusted ports and either forwards or
drops the packets.
When you enable DHCP snooping smart logging, the contents of dropped packets are sent to a Flexible
NetFlow collector.
You can verify the configuration by entering the show ip dhcp snooping user EXEC command.
vlan vlan-range Specify a VLAN ID or a range of VLANs on which to enable DHCP snooping. The
range is 1 to 4094.
You can enter a single VLAN ID identified by VLAN ID number, a series of VLAN
IDs separated by commas, a range of VLAN IDs separated by hyphens, or a range
of VLAN IDs separated by entering the starting and ending VLAN IDs separated
by a space.
smartlog (Optional) Enables DHCP snooping smart logging for the VLAN or range of
VLANs.
Release Modification
12.2(53)SE2 This command was introduced.
12.2(58)SE The smartlog keyword was added.