DHCP snooping configuration commands
A 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 dhcp-snooping to enable DHCP snooping.
Use undo dhcp-snooping 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
Default level
2: System level
49