3com 5500-ei pwr Instruccion De Instalación
1-27
Configuration procedure:
<Sysname> system-view
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] wred 2 64 20
Configuring Traffic Accounting
Refer to section
for information about traffic accounting.
Configuration prerequisites
z
The ACL rules for traffic classification have been defined. Refer to the ACL module of
this manual for information about defining ACL rules.
z
The port that needs this configuration has been determined.
Configuration procedure
Follow these steps to configure traffic accounting:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet port view
interface interface-type
interface-number
interface-number
—
Configure traffic
accounting
accounting
traffic-statistic inbound
acl-rule
acl-rule
Required
By default, traffic
accounting is disabled.
accounting is disabled.
Clear the traffic statistics
reset traffic-statistic
inbound acl-rule
inbound acl-rule
Required
Configuration example
z
Ethernet 1/0/1 is connected to the 10.1.1.0/24 network segment.
z
Perform traffic accounting on the packets sourced from the 10.1.1.0/24 network
segment.
z
Clear the traffic statistics.
Configuration procedure:
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 10.1.1.0 0.0.0.255
[Sysname-acl-basic-2000] quit
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] traffic-statistic inbound ip-group 2000
[Sysname-Ethernet1/0/1] reset traffic-statistic inbound ip-group 2000