1-23Configuration procedureFollow these steps to configure traffic shaping:To do… Use the command… RemarksEnter system view system-view —Enter Ethernet port view interface interface-typeinterface-number —Configure traffic shapingtraffic-shape [ queuequeue-id ] max-rateburst-sizeRequiredTraffic shaping is not enabled bydefault.Traffic shaping can be performed inone of the following two modes:z With the queue queue-id keywordand argument combination notspecified, traffic shaping isperformed for all the traffic.z With the queue queue-id keywordand argument combinationspecified, traffic shaping isperformed for the traffic in thespecific output queue.Configuration examples# Perform traffic shaping for all the traffic to be transmitted through GigabitEthernet 1/0/1, with themaximum traffic rate being 640 kbps and the burst size being 16 kbytes. system-view[device] interface GigabitEthernet1/0/1[device-GigabitEthernet1/0/1] traffic-shape 640 16Configuring Traffic RedirectingRefer to Traffic Redirecting for information about traffic redirecting.Configuration prerequisitesz The ACL rules used for traffic classification are defined. Refer to the ACL module of this manual forinformation about defining ACL rules.z The port which the packets matching the specified ACL rules are to be redirected to is determined.Configuration procedureYou can redirect all the packets matching specific ACL rules, or packets that match specific ACL rulesand 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… RemarksEnter system view system-view —Configure traffic redirecting traffic-redirect inbound acl-rule interfaceinterface-type interface-number Required