ip dhcp snooping vlan
Use this command to enable DHCP snooping for the given VLAN.
Use the no
form of this command to disable the DHCP snooping for aVLAN.
This command enables both the DHCPv4 and DHCPv6 functionality.
Command Syntax
Copy
ip dhcp snooping vlan VLAN_RANGE2 bridge <1-32>
no ip dhcp snooping vlan VLAN_RANGE2 bridge <1-32>
Parameters
VLAN_RANGE2
VLAN identifier <1-4094> or range such as 2-5,10 or 2-5,7-19
<1-32>
Bridge number
Default
By default DHCP snooping is disabled for all VLANs.
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 5.0.
Example
Copy
configure terminal
(config)#vlan 2 bridge 1 state enable
(config)#ip dhcp snooping vlan 2 bridge 1