This section describes how to notify the NMS of attacks.
Before configuring alarms about discarded packets, complete the following tasks:
Configure the DHCP server.
Configure a DHCP relay agent.
Configure the device to discard DHCP reply messages sent by untrusted interfaces.
Enable the device to check the DHCP snooping binding table.
Enable the device to check CHADDRs of DHCP request messages.
system-view
dhcp snooping alarm { arp | ip |dhcp-request | dhcp-chaddr | dhcp-reply } enable [ interface interface-type interface-number ]
In the VLAN view, run:
dhcp snooping alarm { arp | ip | dhcp-request | dhcp-chaddr | dhcp-reply } threshold threshold interface interface-type interface-number
Or in the interface view, run:
dhcp snooping alarm { arp | ip |dhcp-request | dhcp-chaddr | dhcp-reply } threshold threshold
If the following results are displayed, the configuration is successful:
DHCP snooping is enabled in both the system and interface views.
Statistics about the discarded ARP, IP, and DHCP packets are displayed.