The dhcp snooping enable command configures DHCP snooping in a network enhanced profile.
The undo dhcp snooping enable command cancels DHCP snooping in a network enhanced profile.
By default, DHCP snooping is not configured in a network enhanced profile.
This command can only be executed on a parent switch.
# dhcp enable # dhcp snooping enable # interface GigabitEthernet0/0/1 dhcp snooping enable #
In the preceding configuration, GigabitEthernet0/0/1 is used for reference only. The actual configuration depends on the profile configuration.
You can run the dhcp snooping enable command to enable DHCP snooping on a port so as to improve DHCP security.
Precautions
Before running the undo dhcp snooping enable command, ensure that the network enhanced profile view is not configured with IPSG or DAI. To disable IPSG and DAI, run the undo ip source check user-bind enable (network enhanced profile view) and undo arp anti-attack check user-bind enable (network enhanced profile view) commands respectively.
The dhcp snooping enable command configured in the network enhanced profile can only configure a DHCP dynamic binding table but not a DHCP static binding table.