Cisco交换机QoS配置命令

上传人:s9****2 文档编号:488249355 上传时间:2023-06-21 格式:DOCX 页数:4 大小:12.53KB
返回 下载 相关 举报
Cisco交换机QoS配置命令_第1页
第1页 / 共4页
Cisco交换机QoS配置命令_第2页
第2页 / 共4页
Cisco交换机QoS配置命令_第3页
第3页 / 共4页
Cisco交换机QoS配置命令_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《Cisco交换机QoS配置命令》由会员分享,可在线阅读,更多相关《Cisco交换机QoS配置命令(4页珍藏版)》请在金锄头文库上搜索。

1、附件8: Cisco交换机QoS配置命令表2-1 Cisco交换机QOS配置命令QoS命令命令功能和配置模式配置案例mls qosQoS启动switch(config)#mls qos enableclass-map建立并进入分类表 全局配置模式例:创建一个名为c1的分类表switch(config)#class-map c1match设置分类表匹配标准 分类表配置模式例:创建一个名为c1的分类表匹配标准,设置分 类表的匹配IP优先级为0,1的数据包 switch(config)#class-map c1 switch(config-classmap)#match ip precedence

2、0 1policy-map建立一个策略表策略表配置模式例:创建一个命名为p1的策略表switch(config)#policy-map p1class建立一个分类表策略表配置模式例:进入一个策略分类表模式switch(config)#policy-map p1 switch(config-policymap)#class c1set为分类后的流量分配一 个新的dscp和优先级 策略分类表配置模式例:将满足c1分类规则数据包的IP优先级设为3 switch(config)#policy-map p1 switch(config-policymap)#class c1 switch(config-

3、policy-class)#set ip precedence 3police为分类后的流量配置一个策略策略分类表配置模式例:将满足c1分类规则数据包的带宽设为 20mbit/s,突发值设置为20KB/s,超出此带宽的数 据包丢弃switch(config)#policy-map p1switch(config-policymap)#class c1 switch(config-policy-class)#police 20000000 20000 exceed-action dropmls qos aggregate-policer定义一个集合策略 全局配置模式例:创建名为agg1的集合策略

4、,此策略的数据包 带宽为20mbit/s,突发值为20KB/s,超出此带宽的 数据包一律丢弃switch(config)#mls qos aggregate-policer agg1 20000000 20000 exceed-action droppolice aggregate为分类后的流量应用一 个集合策略策略分类表配置模式例:将满足c1分类规则的数据包应用集合策略 agg1switch(config)#policy-map p1 switch(config-policymap)#class c1 switch(config-policy-class)#police aggregate

5、agg1mls qos trust配置端口信任状态例:在端口 ethernet 0/0/1配置信任cos值,数据包端口配置模式按cos值分类,同时不改变数据包里的dscp值 switch(config)#interface ethernet 0/0/1 switch(config-ethernetO/O/l)#mls qos trust cos pass-through-dscpmls qos cos配置端口缺省cos值 接口配置模式例:在端口 ethernet 0/0/1配置缺省cos值为5,艮卩 此端口的数据包不带cos值时,默认cos值为5 switch(config)#interfac

6、e ethernet 0/0/1 switch(config-ethernet0/0/1)#mls qos cos 5service-policy在端口应用一个策略表接口配置模式例:在端口 ethernet 0/0/1的入口上绑定策略p1switch(config)#interface ethernet 0/0/1 switch(config-ethernet0/0/1)# service-policy input p1mls qos dscp-mutation在端口应用dscp转换映 射接口配置模式例:在端口 ethernet 0/0/1 配置 dscp,用 mu1 的 dscp 转换映射s

7、witch(config)#interface ethernet 0/0/1 switch(config-ethernet0/0/1)#mls qos trust dscp pass-through cos switch(config-ethernet0/0/1)#mls qos dscp-mutation mu1wrr-queue bandwidth设置端口的wrr权重 全局配置模式例:将4个出队列的端口带宽比重设为1:2:4:8switch(config)#wrr-queue bandwidth 1 2 4 8priority-queue out配置队列出队工作方式全局配置模式例:将出队列

8、设置为priority-queue工作方式 switch(config)#priority-queue outwrr-queue cos-map设置队列cos值映射 全局配置模式例:将cos值为2, 3的数据包映射到出队队列1switch(config)#wrr-queue cos-map 1 2 3mls qos map设映射 全局配置模式例:将cos-to-dscp的映射值由默认的0 8 16 24 3240 48 56 改为 0 1 2 3 4 5 6 7switch(config)#mls qos map cos-dscp 0 1 2 3 4 5 6 74. Cisco交换机QoS配置

9、命令Cisco交换机QoS配置命令如表5-1所示。表5-1 Cisco交换机QOS配置命令QoS命令命令功能配置模式mls qosQoS启动全局配置模式switch(config)#mls qos trust配置端口信任状态端口配置模式 switch(config-ethernetO/O/l)#mls qos cos配置端口缺省cos值接口配置模式 switch(config-ethernet0/0/1)#mls qos aggregate-policer定义一个集合策略全局配置模式switch(config)#mls qos dscp-mutation端口应用dscp转换映射接口配置模式 s

10、witch(config-ethernet0/0/1)#mls qos map设映射全局配置模式switch(config)#class-map建立并进入分类表全局配置模式switch(config)#class建立一个分类表策略表配置模式 switch(config-policymap)#match设置分类表匹配标准分类表配置模式 switch(config-classmap)#policy-map建立一个策略表策略表配置模式switch(config)#police流量分类表配置策略策略分类表配置模式 switch(config-policy-class)#police aggregate

11、分类流量应用集合策略策略分类表配置模式 switch(config-policy-class)#set分类流量分配优先级策略分类表配置模式 switch(config-policy-class)#service-policy在端口应用一个策略表接口配置模式 switch(config-ethernet0/0/1)#priority-queue out配置队列出队工作方式全局配置模式switch(config)#wrr-queue bandwidth设置端口的wrr权重全局配置模式switch(config)#wrr-queue cos-map设置队列cos值映射全局配置模式switch(config)#

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 学术论文 > 其它学术论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号