The dhcp snooping alarm enable interface command enables the alarm function when the number of discarded ARP packets, IP packets, DHCP Reply packets (discarded on an untrusted interface), DHCP Request packets, or DHCP users reaches the alarm threshold.
The undo dhcp snooping alarm enable interface command disables the alarm function.
By default, DHCP snooping alarm is disabled on an interface.
dhcp snooping alarm { arp | ip | dhcp-request | dhcp-chaddr | dhcp-reply | user-limit } enable interface { interface-type interface-number | interface-name }
undo dhcp snooping alarm { arp | ip | dhcp-request | dhcp-chaddr | dhcp-reply | user-limit } enable interface { interface-type interface-number | interface-name }
Parameter | Description | Value |
---|---|---|
arp |
Indicates that an alarm is generated when the number of dropped ARP packets reaches the threshold. |
- |
ip |
Indicates that an alarm is generated when the number of dropped IP packets reaches the threshold. |
- |
dhcp-request |
Indicates that an alarm is generated when the number of dropped DHCP request packets reaches the threshold. |
- |
dhcp-chaddr |
Indicates that an alarm is generated when the number of dropped DHCP request packets reaches the alarm threshold. The DHCP request packets are dropped when the client hardware address (CHADDR) field does not match the source MAC address in the Ethernet frame header. |
- |
dhcp-reply |
Indicates that an alarm is generated when the number of dropped DHCP Offer, ACK, or NAK packets on the untrusted interface reaches the threshold. |
- |
user-limit |
Indicates that an alarm is generated when the number of DHCP snooping users exceeds the threshold. |
- |
interface interface-type interface-number |
Specifies the interface on which an alarm is generated. This parameter applies only to the VLAN view. |
- |
Usage Scenario
You can configure the following check functions in DHCP snooping applications:
Prerequisites
Follow-up Procedure
Run the dhcp snooping alarm threshold command to configure an alarm threshold.
<HUAWEI> system-view [~HUAWEI] vlan 100 [*HUAWEI-vlan100] commit [~HUAWEI-vlan100] q [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] portswitch [*HUAWEI-GigabitEthernet0/1/0] port link-type access [*HUAWEI-GigabitEthernet0/1/0] port default vlan 100 [*HUAWEI-GigabitEthernet0/1/0] commit [~HUAWEI-GigabitEthernet0/1/0] q [~HUAWEI] dhcp snooping enable [~HUAWEI] vlan 100 [~HUAWEI-vlan100] dhcp snooping enable [*HUAWEI-vlan100] dhcp snooping alarm arp enable interface GigabitEthernet 0/1/0