交换机QOS配置模板Word文档格式.docx
- 文档编号:21929487
- 上传时间:2023-02-01
- 格式:DOCX
- 页数:8
- 大小:15.90KB
交换机QOS配置模板Word文档格式.docx
《交换机QOS配置模板Word文档格式.docx》由会员分享,可在线阅读,更多相关《交换机QOS配置模板Word文档格式.docx(8页珍藏版)》请在冰豆网上搜索。
缺省值缺省没有设置任何policer。
命令模式class配置模式。
使用指导目前的policer支持限制该数据流的带宽和为带宽超限部分指定处理动作;
rate-bps是每秒钟的带宽限制量,对于10/100M以太网接口来说取值范围是1~100Mbsp,对于1000M以太网接口来说取值范围是8~1000Mbsp;
burst-byte是猝发流量限制值,单位是比特(byte)。
您可以在命令中指定关键字drop来丢弃带宽超限部分的报文;
您也可以在命令各种指定dscp
dscp-value来改写带宽超限部分报文的DSCP值;
使用showpolicy-map命令查看设置。
配置示例:
Switch(config)#access-list15permittcphost192.1.1.1
Switch(config)#class-mapclass1
Switch(config-cmap)#matchaccess-group15
Switch(config-cmap)#exit
Switch(config)#policy-mappolicy1
Switch(config-pmap)#classclass1
Switch(config-pmap-c)#police100000exceed-actiondscp22
Switch(config-pmap-c)#setipdscp8
Switch(config-pmap-c)#exit
Switch(config-pmap)#exit
Switch(config)#interfacefastethernet0/2
Switch(config-if)#service-policyinputpolicy
命令描述
class-map创建一个classmap,并进入classmap配置模式。
matchaccess-group创建一个classmap的匹配标准。
policy-map创建一个policymap,并进入policymap配置模式。
class创建一个在该policymap中使用的数据分类,并进入数
据分类配置模式。
setipdscp为该数据流中的IP报文设置新的ipdscp值。
相关命令
showpolicy-map显示一个QoSpolicymap实体的内容。
policy-map
创建一个policymap,并进入policymap配置模式。
使用该命令的no选项删除policymap。
policy-mappolicy-map-name
nopolicy-mappolicy-map-name
语法描述policy-map-namepolicymap的名字。
缺省值缺省没有设置任何policymap。
使用指导使用showpolicy-map命令查看设置。
范例以下的设置步骤创建了一个名为policy1的policy-map:
并进入policy-map模式:
Switch(config-pmap)#
例:
带宽限制为2M,burst-byte是猝发流量限制值32768(32Kburstbytes)
配置模版:
configt
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Switch(config)#policy-maptest
2006-04-1008:
45:
40@5-CONFIG:
Configuredfromoutband
42@5-CONFIG:
Switch(config)#classtest1
57@5-CONFIG:
46:
07@5-CONFIG:
15@5-CONFIG:
Switch(config-pmap)#classtest1
22@5-CONFIG:
Switch(config-pmap-c)#police?
<
1000000-1000000000>
Bitspersecond(1M-100Mandmultipleof1Mfor
portsonstaticmodule;
8M-1000Mandmultipleof8M
forportsondynamicmodule)
Switch(config-pmap-c)#police2000000?
131072128Kburstbytes(validforonlyGigabitports)
1638416Kburstbytes
262144256Kburstbytes(validforonlyGigabitports)
3276832Kburstbytes
40964Kburstbytes
524288512Kburstbytes(validforonlyGigabitports)
6553664Kburstbytes
81928Kburstbytes
Switch(config-pmap-c)#police200000032768?
exceed-actionWhenthespecifiedrateisexceeded,specifythatthe
switchactions
cr>
Switch(config-pmap-c)#police200000032768
57:
31@5-CONFIG:
Switch(config-pmap-c)#end
58:
01@5-CONFIG:
Switch#wr
Buildingconfiguration...
[OK]
Switch#showpolicy-map
PolicyMapName:
test
ClassMapName:
test1
Ratebpslimit(bps):
2000000
Burstbytelimit(byte):
32768
Exceed-action:
drop
Switch#configt
Switch(config)#interfacef0/2
Switch(config-if)#service-policyinputtest
2006-04-1009:
18:
20@5-CONFIG:
Switch(config-if)#end
26@5-CONFIG:
Switch#showpolicy-map
Switch#
s2126g配置实例:
Currentconfiguration:
3292bytes
!
version1.0
hostnameSwitch
vlan1
vlan539
vlan601
.
vlan620
ipaccess-listextendedqos
permitipanyany
class-mapqos
matchaccess-groupqos
policy-mapqos
classqos
police8000000131072
interfacefastEthernet0/1
dot1xport-controlauto
dot1xdynamic-vlanenable
interfacefastEthernet0/24
dot1xport-controlauto
interfacegigabitEthernet2/1
switchportmodetrunk
service-policyinputqos
end
⊙该文章转自[大赛人网站(技能大赛技术资源网)-DasaiR]原文链接:
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 交换机 QOS 配置 模板