Enabling DHCP snooping on VLANs

DHCP snooping on VLANs is disabled by default. To enable DHCP snooping on a VLAN or range of VLANs enter this command:

switch(config)# dhcp-snooping vlan <vlan-id-range>
    

You can also use this command in the vlan context, in which case you cannot enter a range of VLANs for snooping. Below is an example of DHCP snooping enabled on VLAN 4.

DHCP snooping on a VLAN

switch(config)# dhcp-snooping vlan 4
switch(config)# show dhcp-snooping

 DHCP Snooping Information

  DHCP Snooping              : Yes
 Enabled Vlans           : 4
  Verify MAC                 : Yes
  Option 82 untrusted policy : drop
  Option 82 Insertion        : Yes
  Option 82 remote-id        : mac