IPpre-to-Dscp用于将报文的IPpre值映射到内部DSCP值, IPpre-to-DSCP Map的缺省设置见缺省QOS配置,您可以通过以下步骤对IPpre-to-Dscp Map进行设置:
命令 作用
Step 1
Ruijie# configure terminal
进入配置模式
Step 2
Ruijie(config)# mls qos map ip-prec-dscp dscp1...dscp8
修改IP-Precedence-to-Dscp Map的设置,dscp1...dscp8 是对应于IP-Precedence值0~7 的DSCP 值
Ruijie(config)# no mls qos map ip-prec-dscp 恢复缺省配置。
例如如下配置:
Ruijie# configure terminal
Ruijie(config)# mls qos map ip-precedence-dscp 56 48 46 40 34 32 26 24
Ruijie(config)# end
Ruijie# show mls qos maps ip-prec-dscp
ip-precedence dscp
------------- ----
0 56
1 48
2 46
3 40
4 34
5 32
6 26
7 24
66.3 QOS显示
66.3.1 显示class-map
您可以通过以下步骤显示class-map内容 命令 作用
show class-map [class-name] 显示class map实体的内容
例如:
Ruijie# show class-map
Class Map cc
Match access-group 1
Ruijie#
66.3.2 显示policy-map
您可以通过以下步骤显示Policy-map内容 命令 作用
show policy-map [policy-name [class class-name]] 显示QoS policy map,
policy-name为选定的policy map名,指定class class-name时显示相应policy map绑定的class map。
例如:
Ruijie# show policy-map
Policy Map pp
Class cc
Ruijie#
66.3.3 显示mls qos interface
您可以通过以下步骤显示所有端口qos信息 命令 作用
show mls qos interface [interface | policers] 显示接口的QoS信息,
Policers选项显示接口应用的Policy map
例如:
Ruijie# show mls qos interface gigabitEthernet 0/4
Interface: GigabitEthernet 0/4
Attached input policy-map: pp
Default COS: trust dscp
Default COS: 6
Ruijie# show mls qos interface policers
Interface: GigabitEthernet 0/4
Attached input policy-map: pp
Ruijie#
66.3.4 显示mls qos queueing
您可以通过以下步骤显示qos队列信息 命令 作用
show mls qos queueing 显示QoS队列信息,
CoS-to-queue map,wrr weight及drr weight;
举例如下:
Ruijie# show mls qos queueing
Cos-queue map:
cos qid
--- ---
0 1
1 2
2 1
3 4
4 1
5 1
6 1
7 1
wrr bandwidth weights:
qid weights
--- -------
0 1
1 2
2 3
3 4
4 5
5 6
6 7
7 8
66.3.5 显示mls qos scheduler
您可以通过以下步骤显示QOS调度方式 命令 作用
show mls qos scheduler 显示端口优先级队列调度方式
举例如下:
Ruijie# show mls qos scheduler
Global Multi-Layer Switching scheduling
Strict Priority
Ruijie#
66.3.6 显示mls qos maps
您可以通过以下步骤显示mls qos maps对应表 命令 作用
show mls qos maps [cos-dscp | dscp-cos | ip-prec-dscp] 显示dscp-cos maps
dscp-cos maps
ip-prec-dscp maps
举例如下:
Ruijie# show mls qos maps cos-dscp
cos dscp