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] ip vpn-instance vpna [~HUAWEI-vpn-instance-vpna] quit [~HUAWEI] flow-route Rule1 vpn-instance vpna [*HUAWEI-flow-route-vpna] if-match port equal 24 [*HUAWEI-flow-route-vpna] apply traffic-action sample
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [~HUAWEI-vpn-instance-vpna] quit [~HUAWEI] flow-route Rule1 ipv6 vpn-instance vpna [*HUAWEI-flow-route-ipv6-vpna] if-match port equal 24 [*HUAWEI-flow-route-ipv6-vpna] apply traffic-action sample