3Com 5500 Switch User Manual


 
Configuring Traffic Redirection and Traffic Accounting 221
During non-working time, count the HTTP traffic from PC 1 to the Internet.
Applicable Products
Configuration Procedure
1 Define a time range for working days
# Create time range tr1, setting it to become active between 8:30 to 18:00 during
working days.
<3Com> system-view
[3Com] time-range tr1 08:30 to 18:00 working-day
# Create time range tr2, setting is to become active during non-working time.
[3Com] time-range tr2 00:00 to 8:30 working-day
[3Com] time-range tr2 18:00 to 24:00 working-day
[3Com] time-range tr2 00:00 to 24:00 off-day
2 Define traffic classification rules
# Create advanced ACL 3000 and enter advanced ACL view.
<3Com> system-view
[3Com] acl number 3000
# Define traffic classification rules to classify the HTTP traffic from PC 1 to the
Internet.
[3Com-acl-adv-3000] rule 0 permit tcp source 192.168.0.1 0 destinati
on-port eq 80 time-range tr1
[3Com-acl-adv-3000] rule 1 permit tcp source 192.168.0.1 0 destinati
on-port eq 80 time-range tr2
[3Com-acl-adv-3000] quit
3 Configure traffic redirection
# Redirect the traffic matching certain criteria on Ethernet 1/0/1 to Ethernet 1/0/2.
[3Com] interface Ethernet 1/0/1
[3Com-Ethernet1/0/1] traffic-redirect inbound ip-group 3000 rule 0 i
nterface Ethernet 1/0/2
4 Configure traffic accounting
# Count the traffic matching certain criteria on Ethernet 1/0/1.
[3Com-Ethernet1/0/1] traffic-statistic inbound ip-group 3000 rule 1
Complete Configuration #
acl number 3000
rule 0 permit TCP source 192.168.0.1 0 destination-port eq www time-range tr1
Product series Software version Hardware version
Switch 5500 Release V03.02.04 All versions
Switch 5500G Release V03.02.04 All versions
Switch 4500 Release V03.03.00 All versions