76
DHCP snooping configuration commands
NOTE:
The DHCP snooping enabled device does not work if it is between the DHCP relay agent and DHCP
server. It can work when it is between the DHCP client and relay agent or between the DHCP client and
server.
dhcp-snooping
Syntax
dhcp-snooping
undo dhcp-snooping
View
System view
Default level
2: System level
Parameters
None
Description
Use the
dhcp-snooping
command to enable DHCP snooping.
Use the
undo dhcp-snooping
command to disable DHCP snooping.
With DHCP snooping disabled, all ports can forward responses from any DHCP servers and does not
record binding information about MAC addresses of DHCP clients and the obtained IP addresses.
By default, DHCP snooping is disabled.
Related commands:
display dhcp-snooping
.
Examples
# Enable DHCP snooping.
<Sysname> system-view
[Sysname] dhcp-snooping
dhcp-snooping binding database filename
Syntax
dhcp-snooping binding database filename
filename
undo dhcp-snooping binding database filename
View
System view