- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
QOS实验手册(终版)
试验一、QOS的基本实验和拓扑的搭建
实验、简单的认识MQC的一个实验
拓扑如上:
需求:某公司希望你把http,ftp,icmp,dhcp都抓取下来,在上面做一些策略。
1.
r2#sh class-map
Class Map match-all TELNET (id 6)
Match protocol telnet
Class Map match-all OSPF (id 5)
Match protocol ospf
Class Map match-all ICMP (id 2)
Match protocol icmp
Class Map match-all HTTP (id 1)
Match protocol http
Class Map match-all DHCP (id 4)
Match protocol dhcp
Class Map match-any class-default (id 0)
Match any
Class Map match-all FTP (id 3)
Match protocol ftp
2.做策略,调用所有的class进入到策略,领导说, 把icmp干掉。
r2#sh policy-map
Policy Map feng
Class HTTP
Class FTP
Class DHCP
Class OSPF
Class TELNET
Class ICMP
3.我得把策略应用到接口上
r2(config)#int s1/0
r2(config-if)#service-policy input feng
4.查看流量
r2#sh policy-map interface s1/0
Serial1/0
Service-policy input: feng
Class-map: HTTP (match-all)
5 packets, 411 bytes
5 minute offered rate 0 bps
Match: protocol http
Class-map: FTP (match-all)
4 packets, 184 bytes
5 minute offered rate 0 bps
Match: protocol ftp
Class-map: DHCP (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps
Match: protocol dhcp
Class-map: OSPF (match-all)
6 packets, 504 bytes
5 minute offered rate 0 bps
Match: protocol ospf
Class-map: TELNET (match-all)
10 packets, 452 bytes
5 minute offered rate 0 bps
Match: protocol telnet
Class-map: ICMP (match-all)
14 packets, 1000 bytes
5 minute offered rate 0 bps
Match: protocol icmp
Class-map: class-default (match-any)
6145 packets, 1249329 bytes
5 minute offered rate 39000 bps, drop rate 0 bps
Match: any
r2(config)#policy-map feng
r2(config-pmap)#class ICMP
r2(config-pmap-c)#drop
r2#sh policy-map int s1/0 in class ICMP
Serial1/0
Service-policy input: feng
Class-map: ICMP (match-all)
71 packets, 5120 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol icmp
D
文档评论(0)