164
Step Command
Remarks
3.
Configure the port to block
DHCP requests.
dhcp snooping deny
By default, the port does not block
DHCP requests.
Enabling DHCP snooping logging
The DHCP snooping logging feature enables the DHCP snooping device to generate DHCP
snooping logs and send them to the information center. For information about the log destination and
output rule configuration in the information center, see
Network Management and Monitoring
Configuration Guide
.
As a best practice, disable this feature if the log generation affects the device performance.
To enable DHCP snooping logging:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable DHCP snooping
logging.
dhcp snooping log enable
By default, DHCP snooping
logging is disabled.
Display and maintenance commands for DHCP
snooping
Execute
display
commands in any view, and
reset
commands in user view.
Task Command
Display DHCP snooping entries.
display dhcp snooping binding
[
ip
ip-address
[
vlan
vlan-id
] ] [
verbose
]
Display Option 82 configuration information
on the DHCP snooping device.
display dhcp snooping information
{
all
|
interface
interface-type interface-number
}
(In standalone mode.) Display DHCP packet
statistics on the DHCP snooping device.
display dhcp snooping packet statistics
[
slot
slot-number
]
(In IRF mode.) Display DHCP packet
statistics on the DHCP snooping device.
display dhcp snooping packet statistics
[
chassis
chassis-number
slot
slot-number
]
Display information about trusted ports.
display dhcp snooping trust
Display information about the file that stores
DHCP snooping entries.
display dhcp snooping binding database
Clear DHCP snooping entries.
reset dhcp snooping binding
{
all
|
ip
ip-address
[
vlan
vlan-id
] }
(In standalone mode.) Clear DHCP packet
statistics on the DHCP snooping device.
reset dhcp snooping packet statistics
[
slot
slot-number
]
(In IRF mode.) Clear DHCP packet statistics
on the DHCP snooping device.
reset dhcp snooping packet statistics
[
chassis
chassis-number
slot
slot-number
]