Configure the Traffic Statistics Function on S2300&S3300&S5300
|
Assume that the statistics on ping packets from 10.1.1.0/24 need to be collected on the interface Ethernet0/0/1. The configuration is as follows: # Configuration the acl rule. [HUAWEI] acl number 3333[HUAWEI-acl-adv-3333] rule 5 permit icmp source 10.1.1.0 0.0.0.255 [HUAWEI-acl-adv-3333] quit [HUAWEI] traffic classifier test [HUAWEI-classifier-test] if-match acl 3333 [HUAWEI-classifier-test] quit
[HUAWEI-behavior-test] count [HUAWEI-behavior-test] quit
[HUAWEI-behavior-test] statistic enable [HUAWEI-behavior-test] quit [HUAWEI] traffic policy test [HUAWEI-trafficpolicy-test] classifier test behavior test [HUAWEI-trafficpolicy-test] quit
[HUAWEI-Ethernet0/0/1] traffic-policy test inbound
[HUAWEI-GigabitEthernet0/0/1] traffic-policy test inbound After the configuration, run the display traffic policy statistics interface interface-type interface-number command to view the traffic statistics. To re-collect traffic statistics, run the reset traffic policy statistics interface interface-type interface-number command to clear existing traffic statistics first. |

Favorite (0)