Cisco交换机QoS配置命令_第1页
Cisco交换机QoS配置命令_第2页
Cisco交换机QoS配置命令_第3页
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 c1switch(config-classmap)#match ip precedence 0 1p

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

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

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

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

6、 switch(config-ethernet0/0/1)#mls qos cos 5service-policy在端口应用一个策略表接口配置模式例:在端口 ethernet 0/0/1的入口上绑定策略p1 switch(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 转换映射switch(config)#in

7、terface ethernet 0/0/1switch(config-ethernet0/0/1)#mls qos trust dscp pass-through cosswitch(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配置队列出队工作方式 全局配置模式例:将出队列设置为priority-queue

8、工作方式 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配置命令Cisco交换机QoS配置命令如表

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

10、et0/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分类流量应用集合策略策略分类表配置模式 switch(config-policy-class)#set分类流量分配优先级策略分类表配置模式 switch(config-policy-class)#service-policy在端口应用一个策略表接口配置模式 switch(confi

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论