版权所有2008,迈普(四川)通信技术有限公司,保留所有权利目录第1章QOS命令..............................................................................................................................21.1CLASS.........................................................................................................................................................21.2CLASS-MAP.................................................................................................................................................21.3MATCH........................................................................................................................................................31.4MLSQOS.....................................................................................................................................................31.5MLSQOSCOS..............................................................................................................................................41.6MLSQOSAGGREGATE-POLICY....................................................................................................................41.7MLSQOSTRUST..........................................................................................................................................51.8MLSQOSMAP..............................................................................................................................................51.9POLICY........................................................................................................................................................61.10POLICYAGGREGATE....................................................................................................................................61.11POLICY-MAP................................................................................................................................................71.12PRIORITY-QUEUEOUT.................................................................................................................................71.13SET.............................................................................................................................................................81.14SERVICE-POLICY.........................................................................................................................................81.15SHOWCLASS-MAP.......................................................................................................................................91.16SHOWPOLICY-MAP.....................................................................................................................................91.17SHOWMLSQOSAGGREGATE-POLICY........................................................................................................101.18SHOWMLSQOSINTERFACE........................................................................................................................111.19SHOWMLSQOSMAPS...............................................................................................................................121.20SHOWMLS-QOS.........................................................................................................................................131.21WRR-QUEUECOS-MAP..............................................................................................................................14版权所有2008,迈普(四川)通信技术有限公司,保留所有权利第1章QoS命令1.1class命令:classclass-map-namenoclassclass-map-name功能:对应一个class(分类表),并进入策略分类表模式;本命令的no操作为删除指定策略分类表。参数:class-map-name指定策略分类表采用的分类表名称。缺省情况:缺省不存在策略分类表。命令模式:策略表配置模式。使用指南:建立策略分类表以前,必须先建立一个策略表并且进入策略表模式;在策略分类表模式中,可以对按照分类表分类的包流量进行分类。举例:进入一个策略分类表模式。switch(config)#policy-mapp1switch(config-PolicyMap-p1)#classc1switch(config-Policy-p1-Class-c1)#exit1.2class-map命令:class-mapclass-map-namenoclass-mapclass-map-name功能:建立一个class-map(分类表),并进入class-map模式;本命令的no操作为删除指定的class-map。参数:class-map-name分类表的名称。缺省情况:缺省不存在分类表。命令模式:全局配置模式。使用指南:举例:创建和删除一个命名为c1的class-map。switch(config)#class-mapc1版权所有2008,迈普(四川)通信技术有限公司,保留所有权利switch(config-ClassMap-c1)#exitswitch(config)#noclass-mapc11.3match命令:match{access-groupacl-index-or-name|ipdscpdscp-list|ipprecedenceip-precedence-list|vlanvlan-list|coscos-list}nomatch{access-group|ipdscp|ipprecedence|vlan|cos}功能:设置分类表中的匹配标准;本命令的no操作为删除指定的匹配标准。参数:access-groupacl-index-or-name匹配指定的ACL表,参数为ACL的编号或名称;ipdscpdscp-list匹配指定的DSCP值,参数为一个DSCP值列表,最多由8个DSCP值组成;ipprecedenceip-precedence-list匹配指定的IP优先级值,参数为一个IP优先级值列表,最多由8个IP优先级值组成,范围为0~7;vlanvlan-list匹配指定的VLANID值,参数为一个VLANID列表,最多8个VLANID;coscos-list匹配指定的CoS值,参数为一个CoS值列表,最多8个CoS值。缺省情况:缺省不存在匹配标准。命令模式:class-map(分类表)配置模式。使用指南:每个分类表内,只能设置一条匹配标准。举例:创建一个命名为c1的class-map,设置此class-map的分类规则是匹配IPPrecedence优先级为0,1的报文。switch(config)#class-mapc1switch(config-ClassMap-c1)#matchipprecedence01switch(config-ClassMap-c1)#exit1.4mlsqos命令:mlsqosnomlsqos功能:全局启动QoS;本命令的no操作为关闭全局的QoS。参数:无。命令模式:全局配置模式。缺省情况:关闭QoS。版权所有2008,迈普(四川)通信技术有限公司,保留所有权利使用指南:QoS提供四个队列支持处理四种优先级别的流量。举例:打开和关闭QoS功能。swi