92
Procedure
1. Enter system view.
system-view
2. Enter interface view.
interface interface-type interface-number
3. Configure the port to block DHCP requests.
dhcp snooping deny
By default, the port does not block DHCP requests.
Enabling DHCP snooping logging
About 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. The information helps administrators locate
and solve problems. For information about the log destination and output rule configuration in the
information center, see Network Management and Monitoring Configuration Guide.
Restrictions and guidelines
As a best practice, disable this feature if the log generation affects the device performance.
Procedure
1. Enter system view.
system-view
2. Enable DHCP snooping logging.
dhcp snooping log enable
By default, DHCP snooping logging is disabled.
Disabling DHCP snooping on an interface
About disabling DHCP snooping on an interface
This feature allows you to narrow down the interface range where DHCP snooping takes effect. For
example, to make DHCP snooping enable globally except for a specific interface, you can enable
DHCP snooping globally and disable DHCP snooping on the target interface.
Procedure
1. Enter system view.
system-view
2. Enter interface view.
interface interface-type interface-number
3. Disable DHCP snooping on the interface.
dhcp snooping disable
By default:
{ If you enable DHCP snooping globally or for a VLAN, DHCP snooping is enabled on all
interfaces on the device or on all interfaces in the VLAN.
{ If you do not enable DHCP snooping globally or for a VLAN, DHCP snooping is disabled on
all interfaces on the device or on all interfaces in the VLAN.