3com 8807 User Guide

Page of 883
208
C
HAPTER
 22: Q
O
S C
ONFIGURATION
Set drop algorithm and thresholds.
# Define the port GE7/1/1 in WRED drop mode, set the parameters of WRED 0.
[3Com-GigabitEthernet7/1/1] drop-mode wred 0 
Traffic Statistics 
Configuration Example
Network requirements
Suppose the IP address of PC1 is 1.0.0.1 and that of PC2 is 2.0.0.1. The switch is 
up-linked through the port GE7/1/8. Count the packets sent from the switch to 
PC1 during the time range from 8:00 to 18:00 every day.
Network diagram
Figure 53   Network diagram for traffic statistics configuration
Configuration procedure
Define the time range.
# Define the time range from 8:00 to 18:00.
[SW8800] time-range 3Com 8:00 to 18:00 daily 
Define the traffic from PC1.
# Define ACL rule for the traffic from PC1.
[SW8800] acl number 2000
 
[3Com-acl-basic-2000] rule 0 permit source 1.0.0.1 0.0.0.0 time-range 3Com 
Count the packets to PC1 and display the result using the display command.
[3Com-GigabitEthernet7/1/1] traffic-statistic inbound ip-group 2000 rule 0
 
[SW8800] display qos-interface GigabitEthernet7/1/1 traffic-statistic
 
GigabitEthernet7/1/1: traffic-statistic
 
Inbound:
 
   Matches: Acl 2000 rule 0  running
 
     12002688 bytes  (green 1270244416 byte(s), yellow 1895874880 byte(s), 
 
red 704683968 byte(s) )
 
     3333270 packets  (green 0 byte(s), yellow 0 byte(s), red 0 byte(s) ) 
GE7/1/8
GE7/1/1
GE7/1/2
VLAN2,
1.0.0.1/8
VLAN3,
2.0.0.1/8
PC1
PC2
GE7/1/8
GE7/1/1
GE7/1/2
VLAN2,
1.0.0.1/8
VLAN3,
2.0.0.1/8
PC1
PC2