Command Manual (For Soliton) – QoS-QoS Profile
H3C S3100 Series Ethernet Switches
Chapter 1 QoS Commands
1-43
Example
# Generate statistics on the packets that match ACL 2000 and pass Ethernet 1/0/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 1.1.1.0 0.0.0.255
[Sysname-acl-basic-2000] quit
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] traffic-statistic inbound ip-group 2000
1.1.38 traffic-statistic vlan
Syntax
traffic-statistic
vlan
vlan-id
inbound
acl-rule
undo traffic-statistic
vlan
vlan-id inbound
acl-rule
View
System view
Parameter
vlan-id
: VLAN ID, in the range 1 to 4094.
inbound
: Generates statistics on inbound packets.
acl-rule
: ACL rules to be applied. This argument can be the combination of multiple
ACLs. For more information about this argument, refer to
Table 1-8
and
Table 1-9
. Note
that the ACL rules referenced must be those defined with the
permit
keyword specified.
Description
Use the
traffic-statistic vlan
command to generate statistics on packets that match
specific ACL rules and are of a specific VLAN.
Use the
undo traffic-statistic vlan
command to cancel the configuration.
Note that, for the same ACL rule, the traffic accounting function and the
meter statistic
keyword of the
traffic-limit
command are mutually exclusive in a VLAN.
Note:
The traffic accounting function configured on a VLAN is only applicable to packets
tagged with 802.1Q header.
Related command:
display qos-vlan
,
reset
traffic-statistic vlan
.