< Home

dhcp snooping alarm { user-bind | mac-address | untrust-reply } enable (upgrade-compatible command)

Function

The dhcp snooping alarm enable command enables the alarm function for DHCP snooping.

The undo dhcp snooping alarm enable command disables the alarm function for DHCP snooping.

By default, the alarm function for discarded DHCP messages is disabled.

Format

dhcp snooping alarm { user-bind | mac-address | untrust-reply } { enable | [ enable ] threshold threshold }

undo dhcp snooping alarm { user-bind | mac-address | untrust-reply } { enable | [ enable ] threshold }

Parameters

Parameter Description Value

user-bind

Generates an alarm when the number of DHCP messages discarded because they do not match DHCP snooping binding entries reaches the threshold.

-

mac-address

Generates an alarm when the number of DHCP messages discarded because the CHADDR field in the DHCP message does not match the source MAC address in the Ethernet frame header reaches the threshold.

-

untrust-reply

Generates an alarm when the number of DHCP Reply messages discarded by untrusted interfaces reaches the threshold.

-

threshold threshold

Specifies the alarm threshold. When the number of discarded DHCP messages reaches the threshold, an alarm is generated.

The value is an integer that ranges from 1 to 1000.

Views

Ethernet interface view, GE interface view, XGE interface view, Eth-Trunk interface view, Port-group view

Default Level

2: Configuration level

Usage Guidelines

This command is available to aid upgrade compatibility. It can be run when it is entered in full.

It is replaced by the dhcp snooping alarm { dhcp-request | dhcp-chaddr | dhcp-reply } enable [ threshold threshold ] command.

Example

# On GE0/0/1, enable DHCP snooping, and enable the alarm function for DHCP snooping.

<HUAWEI> system-view
[HUAWEI] dhcp snooping enable
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] dhcp snooping enable
[HUAWEI-GigabitEthernet0/0/1] dhcp snooping alarm user-bind enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >