< Home

dhcp snooping alarm threshold (VLAN view)

Function

The dhcp snooping alarm threshold command configures the alarm threshold of the number of the discarded ARP packets, IP packets, DHCP reply messages (received on the untrusted interface) and DHCP request messages.

The undo dhcp snooping alarm threshold command restores the default value of the alarm threshold.

Format

dhcp snooping alarm { arp | ip | dhcp-request | dhcp-chaddr | dhcp-reply } threshold threshold interface interface-type interface-number

undo dhcp snooping alarm { arp | ip | dhcp-request | dhcp-chaddr | dhcp-reply } threshold interface interface-type interface-number

Parameters

Parameter Description Value
arp Indicates that the alarm occurs when the number of the discarded ARP packets reaches the threshold. -
ip Indicates that the alarm occurs when the number of the discarded IP packets reaches the threshold. -
dhcp-reply Indicates that the alarm occurs when the number of the DHCP response messages discarded on the untrusted interface reaches the threshold, including the Offer, ACK, and NAK messages. -
dhcp-chaddr Indicates that the alarm occurs when the number of discarded DHCP messages, in which the CHADDR field is inconsistent with the source MAC of the Ethernet frame, reaches the threshold. -
dhcp-request Indicates that the alarm occurs when the number of the discarded DHCP request messages reaches the threshold. -
threshold threshold Specifies the alarm threshold. The value ranges from 1 to 1000. The default value is 100.
interface interface-type interface-number Specifies the type and number of an interface. -

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

You can run the dhcp snooping alarm threshold command in the VLAN view to set the alarm threshold for discarded packets in the VLAN.

If no alarm threshold is configured in the VLAN view, the global alarm threshold is used.

If alarm thresholds are configured in both the system view and the VLAN view, only the alarm threshold configured in the VLAN view takes effect.

Example

# Configure the threshold of the discarded ARP packets in VLAN 100 to 200.

<sysname> system-view
[sysname] vlan 100
[sysname-vlan-100] dhcp snooping alarm arp threshold 200 interface GigabitEthernet 0/0/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >