apply traffic-action sample

Function

The apply traffic-action sample command configures sampling for matching packets in a static BGP Flow Specification route.

The undo apply traffic-action sample command restores the default configuration.

By default, sampling is not configured for matching packets in a static BGP Flow Specification route.

Format

apply traffic-action sample

undo apply traffic-action sample

Parameters

None

Views

Flow-Route-IPv6 view, Flow-Route view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
flow-route write

Usage Guidelines

Usage Scenario

After the apply traffic-action sample command is configured in a BGP (IPv6) Flow Specification route, sampling is implemented for matching packets. After that, sampled packets are detected to identify and filter out abnormal packets. This protects devices against attacks and enhance network security.

Prerequisites

A static BGP IPv6 Flow Specification route has been created using the flow-route command in the system view.

Example

# Configure sampling for matching packets in static BGP Flow Specification route 1.
<HUAWEI> system-view
[~HUAWEI] flow-route Rule1
[*HUAWEI-flow-route] if-match port equal 24
[*HUAWEI-flow-route] apply traffic-action sample
# Configure sampling for matching packets in static BGP IPv6 Flow Specification route 1.
<HUAWEI> system-view
[~HUAWEI] flow-route Rule1 ipv6
[*HUAWEI-flow-route-ipv6] if-match port equal 24
[*HUAWEI-flow-route-ipv6] apply traffic-action sample
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >