
Configuring Traffic Redirection and Traffic Accounting 221
■During
Applicable Products
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 |
|
|
|
Configuration Procedure
1Define 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>
[3Com]
# Create time range tr2, setting is to become active during
[3Com]
[3Com]
[3Com]
2Define traffic classification rules
# Create advanced ACL 3000 and enter advanced ACL view.
<3Com>
[3Com] acl number 3000
#Define traffic classification rules to classify the HTTP traffic from PC 1 to the Internet.
rule | 0 | permit tcp source 192.168.0.1 0 | destinati | ||||
eq | 80 | tr1 |
| ||||
rule | 1 | permit tcp source 192.168.0.1 0 | destinati | ||||
eq | 80 | tr2 |
| ||||
quit |
|
|
|
3Configure traffic redirection
# Redirect the traffic matching certain criteria on Ethernet 1/0/1 to Ethernet 1/0/2.
[3Com] interface Ethernet 1/0/1
nterface Ethernet 1/0/2
4Configure traffic accounting
# Count the traffic matching certain criteria on Ethernet 1/0/1.
Complete Configuration #
acl number 3000
rule 0 permit TCP source 192.168.0.1 0