3Com 5500G, 4210, 4200G manual Configuring Traffic Redirection and Traffic Accounting

Models: 4210 5500 5500G 4200G

1 336
Download 336 pages 59.74 Kb
Page 221
Image 221

Configuring Traffic Redirection and Traffic Accounting 221

During non-working time, count the HTTP traffic from PC 1 to the Internet.

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> 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

2Define 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

 

 

 

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

[3Com-Ethernet1/0/1] traffic-redirect inbound ip-group 3000 rule 0 i

nterface Ethernet 1/0/2

4Configure 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

Page 221
Image 221
3Com 5500G, 4210, 4200G manual Configuring Traffic Redirection and Traffic Accounting