1-22
To do… Use the command… Remarks
Enter system view system-view —
Enter Ethernet port view interface interface-type
interface-number —
Configure WRED wred queue-index qstart
probability
Required
By default, WRED is not
configured.
Configuration example
Configure WRED for queue 2 of Ethernet 1/0/1 to drop the packets in queue 2 randomly when the
number of packets in queue 2 exceeds 64, setting the dropping probability being 20%.
Configuration procedure:
<Sysname> system-view
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] wred 2 64 20
Configuring Traffic Mirroring Refer to section Traffic mirroring for information about traffic mirroring.
Configuration prerequisites
z The ACL rules for traffic classification have been defined. Refer to the ACL module of this manual
for information about defining ACL rules.
z The source mirroring ports and mirroring direction have been determined.
z The destination mirroring port has been determined.
Configuration procedure
Follow these steps to configure traffic mirroring:
To do… Use the command… Remarks
Enter system view system-view —
Enter Ethernet port view interface interface-type
interface-number —
Configure the current port as a source
mirroring port
mirrored-to { inbound |
outbound } acl-rule
{ monitor-interface | cpu }
Required
Omit the following
steps if you redirect
traffic to the CPU.
Proceed to the
following steps if you
redirect traffic to a port.
Quit to system view quit —
In system view mirroring-group group-id
monitor-port monitor-port-id
interface interface-type
interface-number
Configure the specified
port as the destination
mirroring port In Ethernet
port view monitor-port
Required
Use either approach.