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.
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.
<HUAWEI> system-view [~HUAWEI] flow-route Rule1 [*HUAWEI-flow-route] if-match port equal 24 [*HUAWEI-flow-route] apply traffic-action sample
<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