To do…

 

Use the command…

 

Remarks

 

Collect the statistics on the

 

traffic-statistic vlan vlan-id

 

 

 

packets matching specific ACL

 

 

Required

 

 

inbound acl-rule

 

 

rules

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Clear the statistics on the packets

reset traffic-statistic vlan vlan-id

 

Optional

 

matching specific ACL rules

inbound acl-rule

 

 

 

 

 

 

 

 

 

 

Follow these steps to collect traffic statistics on packets that are of a port group and match specific ACL rules:

To do…

Use the command…

Remarks

Enter system view

system-view

 

 

 

Enter port group view

port-group group-id

 

 

 

Collect the statistics on the

 

 

packets matching specific ACL

traffic-statistic inbound acl-rule

Required

rules

 

 

 

 

 

Clear the statistics on the packets

reset traffic-statistic inbound

Optional

matching specific ACL rules

acl-rule

 

 

 

 

Follow these steps to collect traffic statistics on packets passing a port and matching specific ACL rules:

 

To do…

Use the command…

Remarks

 

 

Enter system view

system-view

 

 

 

 

 

 

 

Enter Ethernet port view

interface interface-type

 

 

interface-number

 

 

 

 

 

 

 

 

 

 

 

Collect the statistics on the

 

 

 

 

packets matching specific

traffic-statistic inbound acl-rule

Required

 

 

ACL rules

 

 

 

 

 

 

 

 

 

Clear the statistics on the

 

 

 

 

packets matching specific

reset traffic-statistic inbound acl-rule

Optional

 

 

ACL rules

 

 

 

 

 

 

 

 

As the priority of traffic classification rules is higher than that of the default rules used for processing protocol packets, collecting traffic statistics on all the packets or packets of a VLAN may affect device management that is implemented through Telnet and so on

Configuration example

zGigabitEthernet 1/0/1 is connected to the 10.1.1.0/24 network segment.

zCollect statistics on the packets sourced from the 10.1.1.0/24 network segment.

zClear the statistics.

1)Method I

<device> system-view

1-28

Page 389
Image 389
3Com WX3000 Traffic-statistic vlan vlan-id, Reset traffic-statistic vlan vlan-id, Reset traffic-statistic inbound acl-rule