![图片[1]-16.3 CQ队列-大赛人网](https://www.dsrw.com/wp-content/uploads/2023/03/图片2-29-1024x521.png)
1.FW2配置ACL
[FW2]acl number 2001
[FW2-acl-basic-2001]rule permit source 192.168.1.0 0.0.0.255
[FW2]acl number 2002
[FW2-acl-basic-2002]rule permit source 192.168.2.0 0.0.0.255
[FW2]acl number 2003
[FW2-acl-basic-2003]rule permit source 192.168.3.0 0.0.0.255
2.FW2配置制定队列
[FW2]qos cql 1 protocol ip acl 2001 queue 1
[FW2]qos cql 1 protocol ip acl 2002 queue 2
[FW2]qos cql 1 protocol ip acl 2003 queue 3
[FW2]qos cql 1 default-queue 4
//配置缺省队列,匹配不上任何规则的流量进入缺省队列
3.FW2配置各队列长度
[FW2]qos cql 1 queue 1 queue-length 250
[FW2]qos cql 1 queue 2 queue-length 200
[FW2]qos cql 1 queue 3 queue-length 100
[FW2]qos cql 1 queue 4 queue-length 50
4.FW2配置每次调度的字节数
[FW2]qos cql 1 queue 1 serving 400
[FW2]qos cql 1 queue 2 serving 300
[FW2]qos cql 1 queue 3 serving 200
[FW2]qos cql 1 queue 4 serving 100
5.FW2接口启用制定队列规则组1
[FW2]interface GigabitEthernet 0/0/1
[FW2-GigabitEthernet0/0/1]qos cq cql 1
6.验证结果
[FW2]display qos cq interface GigabitEthernet 0/0/1
19:14:41 2023/02/26
Interface: GigabitEthernet0/0/1
Output queue : (Protocol queue : Size/Length/Discards) 0/1000/0
Output queue : (Custom queue : CQL 1 Size/Length/Type/Sub-List/Discards)
1: 0/ 250/FIFO/ 0/0 2: 0/ 200/FIFO/ 0/0
3: 0/ 100/FIFO/ 0/0 4: 0/ 50/FIFO/ 0/0
5: 0/ 20/FIFO/ 0/0 6: 0/ 20/FIFO/ 0/0
7: 0/ 20/FIFO/ 0/0 8: 0/ 20/FIFO/ 0/0
9: 0/ 20/FIFO/ 0/0 10: 0/ 20/FIFO/ 0/0
11: 0/ 20/FIFO/ 0/0 12: 0/ 20/FIFO/ 0/0
13: 0/ 20/FIFO/ 0/0 14: 0/ 20/FIFO/ 0/0
15: 0/ 20/FIFO/ 0/0 16: 0/ 20/FIFO/ 0/0
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容