53
Configuration procedure
# Enter system view.
<Sysname> system-view
# Configure ACL 2000 to match packets sourced from 1.1.1.1 0.0.0.0.
[Sysname] acl number 2001
[Sysname-acl-basic-2001] rule permit source 1.1.1.1 0.0.0.0
# Configure CQ list 1.
[Sysname] qos cql 1 protocol ip acl 2001 queue 1
[Sysname] qos cql 1 queue 1 serving 2000
# Apply CQ list 1 to interface Serial 2/1/1.
[Sysname] interface serial 2/1/1
[Sysname-Serial 2/1/1] qos cq cql 1
Configuring WFQ
You must enable the rate limit function for the queuing function to take effect on these interfaces:
tunnel interfaces, subinterfaces, Layer 3 aggregate interfaces, HDLC link bundle interfaces, RPR
logical interfaces, and VT interfaces configured with PPPoE, PPPoA, or PPPoEoA.
On an interface without WFQ configured, the
qos wfq
command can enable WFQ and configure
WFQ-related parameters. If WFQ is configured for the interface, the
qos wfq
command can modify
the WFQ-related parameters.
To configure WFQ:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface
interface-type interface-number
N/A
3.
Configure WFQ.
qos wfq
[
dscp
|
precedence
]
[
queue-length
max-queue-length
[
queue-number
total-queue-number
] ]
By default, FIFO
applies.
4.
Display interface WFQ
configuration information.
display qos wfq interface
[
interface-type
interface-number
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Optional.
Available in any view.
WFQ configuration example
Network requirements
Configure WFQ on Serial 2/1/1, setting the maximum queue size to 100, and the total number of
queues to 512.
Configuration procedure
# Enter system view.
<Sysname> system-view
# Enter interface view.
[Sysname] interface serial 2/1/1
# Configure WFQ on Serial 2/1/1, setting the maximum queue size to 100, and the total number of
queues to 512.
[Sysname-Serial2/1/1] qos wfq queue-length 100 queue-number 512