Configuration procedure

Follow these steps to configure traffic shaping:

 

To do…

 

Use the command…

 

 

 

Remarks

 

 

 

Enter system view

 

system-view

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Enter Ethernet port view

 

interface interface-type

 

 

 

 

 

 

 

interface-number

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Required

 

 

 

 

 

 

 

Traffic shaping is not enabled by

 

 

 

 

 

default.

 

 

 

 

 

 

 

 

Traffic shaping can be performed in

 

 

 

 

one of the following two modes:

 

 

 

 

traffic-shape [ queue

 

z With the queue queue-idkeyword

 

Configure traffic shaping

queue-id ] max-rate

 

and

argument combination

not

 

 

burst-size

 

specified,

traffic

shaping

is

 

 

 

 

 

performed for all the traffic.

 

 

 

 

 

 

z With the queue queue-idkeyword

 

 

 

 

 

and

argument

combination

 

 

 

 

 

specified,

traffic

shaping

is

 

 

 

 

 

performed for the traffic in the

 

 

 

 

 

specific output queue.

 

Configuration examples

#Perform traffic shaping for all the traffic to be transmitted through GigabitEthernet 1/0/1, with the maximum traffic rate being 640 kbps and the burst size being 16 kbytes.

<device> system-view

[device] interface GigabitEthernet1/0/1

[device-GigabitEthernet1/0/1] traffic-shape 640 16

Configuring Traffic Redirecting

Refer to Traffic Redirecting for information about traffic redirecting.

Configuration prerequisites

z

z

The ACL rules used for traffic classification are defined. Refer to the ACL module of this manual for information about defining ACL rules.

The port which the packets matching the specified ACL rules are to be redirected to is determined.

Configuration procedure

You can redirect all the packets matching specific ACL rules, or packets that match specific ACL rules and are of a VLAN, of a port group, or pass a port.

Follow these steps to redirect all the packets matching specific ACL rules:

To do…

Use the command…

Remarks

Enter system view

system-view

 

 

 

Configure traffic redirecting

traffic-redirect inbound acl-ruleinterface

Required

 

interface-type interface-number

 

1-23

Page 384
Image 384
3Com WX3000 operation manual Configuring Traffic Redirecting, Configuration examples, Traffic-shape queue