Configuring traffic redirecting – H3C Technologies H3C WX3000 Series Unified Switches User Manual
Page 367
37-23
To do…
Use the command…
Remarks
Configure traffic shaping
traffic-shape
[ queue
queue-id
] max-rate
burst-size
Required
Traffic shaping is not enabled by default.
Traffic shaping can be performed in one of the
following two modes:
z
With the queue queue-id keyword and
argument combination not specified, traffic
shaping is performed for all the traffic.
z
With the queue queue-id keyword 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] interface GigabitEthernet1/0/1
[device-GigabitEthernet1/0/1] traffic-shape 640 16
Configuring Traffic Redirecting
for information about traffic redirecting.
Configuration prerequisites
z
The ACL rules used for traffic classification are defined. Refer to ACL in H3C WX3000 Series
Unified Switches Switching Engine Configuration Guide
for information about defining ACL rules.
z
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-rule interface
interface-type interface-number
Required
Follow these steps to redirect packets that are of a VLAN and match specific ACL rules:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure traffic redirecting
traffic-redirect vlan vlan-id
inbound acl-rule
interface interface-type interface-number
Required
Follow these steps to redirect packets that are of a port group and match specific ACL rules:
To do…
Use the command…
Remarks
Enter system view
system-view
—