Disabling DHCP Option 82 Globally and Re-enabling It for an Interface
By default, when DHCP option 82 is enabled on a VLAN, DHCP packets received on all
member ports of the VLAN are subject to DHCP option 82 processing. You can disable
or re-enable this processing globally for all VLANs. The following task disables DHCP
option 82 globally for all VLANs so that it is not enabled when DHCP snooping is configured
for VLAN 100. It then re-enables DHCP option 82 for a specified Ethernet interface.
- Enter global configuration mode.
- Use the
ip dhcp snooping relay information disablecommand to disable DHCP option 82 globally for all ports and VLANs. - Use the
ip dhcp snoopingcommand and specify a VLAN to configure DHCP snooping for the VLAN.DHCP option 82 is not enabled when DHCP snooping is configured for VLAN 100. - Enter interface configuration mode.
- Re-enable DHCP option 82 as required at the interface configuration level.
The following example disables DHCP option 82 globally for all ports and VLANs so that it is not enabled when DHCP snooping is configured for VLAN 100.
device# configure terminal device(config)# ip dhcp snooping relay information disable device(config)# ip dhcp snooping vlan 100
The following example disables DHCP option 82 globally for all ports and VLANS, and re-enables it for interface Ethernet 1/1/1.
device# configure terminal device(config)# ip dhcp snooping relay information disable device(config)# ip dhcp snooping vlan 100 device(config)# interface ethernet 1/1/1 device(config-if-e1000-1/1/1)# dhcp snooping relay information
The following example disables DHCP option 82 for VLAN 100 after it was automatically enabled when DHCP snooping was configured for VLANs 100, 200, and 300.
device# configure terminal device(config)# ip dhcp snooping vlan 100 to vlan 300 device(config)# ip dhcp snooping relay information disable vlan 100