dhcp snooping enable vlan
Use dhcp snooping enable vlan to enable DHCP snooping for VLANs.
Use undo dhcp snooping enable vlan to disable DHCP snooping for VLANs.
Syntax
dhcp snooping enable vlan vlan-id-list
undo dhcp snooping enable vlan vlan-id-list
Default
DHCP snooping is disabled for all VLANs.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
vlan-id-list: Specifies a space-separated list of up to 10 VLAN items. Each VLAN item specifies a VLAN by VLAN ID or specifies a range of VLANs in the form of vlan-id1 to vlan-id2. The value range for the VLAN IDs is 1 to 4094. If you specify a VLAN range, the value for the vlan-id2 argument must be greater than the value for the vlan-id1 argument.
Usage guidelines
After you enable DHCP snooping for a VLAN, DHCP snooping untrusted ports in the VLAN discard incoming DHCP responses. This mechanism ensures that DHCP clients obtain IP addresses from authorized DHCP servers.
After you disable DHCP snooping for a VLAN, all interfaces in the VLAN can forward DHCP responses.
Examples
# Enable DHCP snooping for VLANs 5, 10 to 20, and 32.
<Sysname> system-view [Sysname] dhcp snooping enable vlan 5 10 to 20 32