ip dhcp snooping relay information disable

Enables DHCP snooping relay information (DHCP option 82) on a specified VLAN, a range of VLANs, or for all VLANs.
Syntax
ip dhcp snooping relay information disable[vlanvlan-id[tovlan-id … ]]
no ip dhcp snooping relay information disable[vlanvlan-id[tovlan-id … ]]
Command Default

DHCP option 82 is enabled by default when DHCP snooping is enabled.

Parameters
vlanvlan-id
Specifies a VLAN.
tovlan-id
Specifies a range of VLANs.
Modes

Global configuration mode

Usage Guidelines

When DHCP snooping is enabled using the ip dhcp snooping vlan command, DHCP option 82 is automatically enabled. If multiple interfaces are part of a VLAN, DHCP option 82 can be disabled, or re-enabled, for all ports of the VLAN using this command. DHCP option 82 can also be disabled or re-enabled for all VLANs in a switch using this command.

This command cannot be applied to VLANs that are members of a VLAN group. When the command is configured globally or per VLAN, VLANs that belong to a VLAN group are skipped and an error is displayed, while the setting is applied to all other applicable VLANs. The configuration can be saved successfully, and after a reload the system reports a consolidated error for the VLAN‑group VLANs.

The no form of the command re-enables DHCP option 82 on a specified VLAN or for all VLANs.

Examples

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 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 globally and enables DHCP snooping for VLANs 100 through 300. DHCP option 82 is then enabled on all ports for VLAN 100.

device# configure terminal
device(config)# ip dhcp snooping relay information disable
device(config)# ip dhcp snooping vlan 100 to 300
device(config)# no ip dhcp snooping relay information disable vlan 100

The following example disables DHCP option 82 for VLAN 100. DHCP option 82 is automatically configured for VLANs 200 and 300 when DHCP snooping is enabled.

device# configure terminal
device(config)# ip dhcp snooping vlan 100 to 300
device(config)# ip dhcp snooping relay information disable vlan 100

The following example disables DHCP option 82 globally for all VLANs and ports.

device# configure terminal
device(config)# ip dhcp snooping vlan 100 to 300
device(config)# ip dhcp snooping relay information disable
Warning - DHCP snooping relay information will be disabled on all port(s) & VLAN(s). You can enable it on individual ports/VLAN(s)

The following example disables DHCP option 82 globally for all ports and VLANs and re-enables it for VLAN 100.

device# configure terminal
device(config)# ip dhcp snooping vlan 100 to 500
device(config)# ip dhcp snooping relay information disable
Warning - DHCP snooping relay information will be disabled on all port(s) & VLAN(s). You can enable it on individual ports/VLAN(s)
device(config)# no ip dhcp snooping relay information disable vlan 100

The following example disables DHCP option 82 for a specified range of VLANs.

device# configure terminal
device(config)# ip dhcp snooping relay information disable vlan 11 to 15
History
Release version Command history
08.0.80 This command was introduced.
08.0.95 The to keyword was added to enable DHCP snooping relay information for a range of VLANS.