Configuring WRED on an interface
To configure qos wred enable on an interface, you must first enable WFQ on the software interface.
To do...
1.
Enter system view.
2.
Enter interface view.
3.
Enable WRED.
4.
Set the WRED exponent for
average queue size
calculation.
5.
Set the drop-related parameters
for the precedence.
6.
Display interface WRED
configuration.
Configuration example
Network requirements
Enable IP precedence-based WRED on interface GigabitEthernet 1/0/1.
Set the following parameters for packets with IP precedence 3: lower threshold 20, upper threshold 40,
and drop probability denominator 15.
Set the exponential factor for the average queue size calculation to 6.
Configuration procedure
# Enter system view.
<Sysname> system-view
# Enter interface view.
[Sysname] interface gigabitethernet 1/0/1
# Enable IP precedence-based WRED.
[Sysname-GigabitEthernet1/0/1] qos wred ip-precedence enable
# Set the following parameters for packets with IP precedence 3: lower threshold 20, upper threshold 40,
and drop probability denominator 15.
[Sysname-GigabitEthernet1/0/1]
discard-probability 15
# Set the exponential factor for the average queue size calculation to 6.
[Sysname-GigabitEthernet1/0/1] qos wred weighting-constant 6
Command...
system-view
interface interface-type
interface-number
qos wred [ dscp | ip-precedence ]
enable
qos wred weighting-constant
exponent
qos wred { ip-precedence
ip-precedence | dscp dscp-value }
low-limit low-limit high-limit
high-limit discard-probability
discard-prob
display qos wred interface
[ interface-type interface-number ]
qos
wred
ip-precedence
85
Remarks
—
—
Required.
Optional.
9 by default.
Optional.
By default, low-limit is 0, high-limit
is 30, and discard-prob is 10.
Available in any view.
3
low-limit
20
high-limit
40