By configuring the function described in this chapter, you can have an alarm generated when a specified number of Dynamic Host Configuration Protocol (DHCP) reply packets are discarded.
After trusted and untrusted interfaces are configured, the device discards all DHCP reply packets received from untrusted interfaces. You can set a threshold for the number of discarded packets. When the number of discarded packets reaches the threshold, an alarm is generated.
For a Layer 2 device, configure the alarm function for discarded DHCP reply packets in a VLAN view. For a Layer 3 device, configure the alarm function for discarded DHCP reply packets in an interface view or in a BD view.