< Home

traffic-policy discard packet trap enable

Function

The traffic-policy discard packet trap enable command enables the function of generating alarms when packets are discarded due to traffic policy matching.

The undo traffic-policy discard packet trap enable command disables the function of generating alarms when packets are discarded due to traffic policy matching.

Format

traffic-policy discard packet trap enable

undo traffic-policy discard packet trap enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, the function is disabled.

After you enable this function, if any packet matches a traffic policy, the packet is discarded, and a packet discarding alarm is generated for the information center. For configuration of the information center, see Configuring the FW to Output Alarms.

Example

# Enable the function of generating alarms when packets are discarded due to traffic policy matching.

<sysname> system-view
[sysname] traffic-policy discard packet trap enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >