3-1
3
DHCP Snooping Configuration Commands
DHCP Snooping Configuration Commands
dhcp-snooping
Syntax
dhcp-snooping
undo dhcp-snooping
View
System view
Parameters
None
Description
Use the
dhcp-snooping
command to enable the DHCP snooping function.
Use the
undo dhcp-snooping
command to disable the DHCP snooping function. After DHCP
snooping is disabled, all the ports can forward DHCP replies from the DHCP server without recording
the IP-to-MAC bindings of the DHCP clients.
By default, the DHCP snooping function is disabled.
Note that:
z
You need to disable DHCP relay agent before enabling DHCP snooping on the switch.
z
The clients connected to a DHCP snooping device cannot obtain an IP address through BOOTP.
Related commands:
dhcp-server
,
display dhcp-snooping
.
Examples
# Enter system view.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
# Enable the DHCP snooping function.
[Sysname] dhcp-snooping
dhcp-snooping information enable
Syntax
dhcp-snooping information enable
undo dhcp-snooping information enable