已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
CISCO3550交换机作为我们单位的核心网络交换机,已经稳定运行了多年,功能上也能满足我们的需求,但是其端口限速功能却不像其它的一些交换机那样容易实现,好在最近找到了实现的办法,配置完成后,配合iperf这款测速软件进行验证,结果证明这个方法是行之有效的,下面是具体实现步骤。一、创建ACL由于这是一台三层交换机,所以虽然是对端口进行限速,但是还要考虑这个端口上通过的网络地址,本例中,我们选择对CISCO3550交换机的第22口进行限速,该端口属于VLAN66,IP地址段为10.66/16,所以首先要创建一个ACL,如下所示:3550#conf tEnter configuration commands, one per line. End with CNTL/Z.3550(config)#access-list 15 permit 10.66.0.0 0.0.255.255二、创建class-map3550#conf tEnter configuration commands, one per line. End with CNTL/Z.3550(config)#class-map dkxs3550(config-cmap)#match access-group 15这一步操作的主要目的就是创建了一个class-map,在这里面引用了我们事先创建好的ACL 15,方便我们以后对22端口进行操作。三、创建policy-map出于测试的需要,我们创建了多个policy-map,分别设置不同的限制带宽,如80k,1m,5m,10m,分别如下:3550#conf tEnter configuration commands, one per line. End with CNTL/Z.3550(config)#policy-map 80k3550(config-pmap)#class dkxs3550(config-pmap-c)# police 80000 8000 exceed-action drop3550#conf tEnter configuration commands, one per line. End with CNTL/Z.3550(config)#policy-map 1m3550(config-pmap)#class dkxs3550(config-pmap-c)# police 1000000 100000 exceed-action drop3550#conf tEnter configuration commands, one per line. End with CNTL/Z.3550(config)#policy-map 5m3550(config-pmap)#class dkxs3550(config-pmap-c)# police 5000000 500000 exceed-action drop3550#conf tEnter configuration commands, one per line. End with CNTL/Z.3550(config)#policy-map 10m3550(config-pmap)#class dkxs3550(config-pmap-c)# police 10000000 1000000 exceed-action drop四、查看配置信息3550#show runpolicy-map 5mclass dkxspolice 5000000 500000 exceed-action droppolicy-map 1mclass dkxspolice 1000000 100000 exceed-action droppolicy-map 80kclass dkxspolice 80000 8000 exceed-action droppolicy-map 10mclass dkxspolice 10000000 1000000 exceed-action drop五、通过iperf软件进行验证即先在一台服务器上运行iperf的服务器端,命令如下:F:toolsiperf -s-Server listening on TCP port 5001TCP window size: 8.00 KByte (default)-然后在交换机的22口上分别应用表示不同速率的policy-map,每应用一次,通过一台连接到22端口的笔记本电脑运行iperf的客户端,进行端口速率测试,结果分别如下:(交换机设置)3550(config-if)#service-policy input 80k(IPERF客户端测试结果)F:toolsiperf -c 10.66.66.8-Client connecting to 10.66.66.8, TCP port 5001TCP window size: 8.00 KByte (default)-1912 local 10.66.123.66 port 1147 connected with 10.66.66.8 port 5001 ID Interval Transfer Bandwidth1912 0.0-12.5 sec 104 KBytes 68.3 Kbits/secF:toolsiperf -c 10.66.66.8-Client connecting to 10.66.66.8, TCP port 5001TCP window size: 8.00 KByte (default)-1912 local 10.66.123.66 port 1151 connected with 10.66.66.8 port 5001 ID Interval Transfer Bandwidth1912 0.0-12.0 sec 104 KBytes 70.8 Kbits/sec(交换机设置)3550(config-if)#service-policy input 1m(IPERF客户端测试结果)F:toolsiperf -c 10.66.66.8-Client connecting to 10.66.66.8, TCP port 5001TCP window size: 8.00 KByte (default)-1912 local 10.66.123.66 port 1155 connected with 10.66.66.8 port 5001 ID Interval Transfer Bandwidth1912 0.0-10.5 sec 1.08 MBytes 860 Kbits/secF:toolsiperf -c 10.66.66.8-Client connecting to 10.66.66.8, TCP port 5001TCP window size: 8.00 KByte (default)-1912 local 10.66.123.66 port 1159 connected with 10.66.66.8 port 5001 ID Interval Transfer Bandwidth1912 0.0-10.0 sec 1.09 MBytes 910 Kbits/sec(交换机设置)3550(config-if)#service-policy input 5m(IPERF客户端测试结果)F:toolsiperf -c 10.66.66.8-Client connecting to 10.66.66.8, TCP port 5001TCP window size: 8.00 KByte (default)-1912 local 10.66.123.66 port 1163 connected with 10.66.66.8 port 5001 ID Interval Transfer Bandwidth1912 0.0-10.5 sec 5.84 MBytes 4.67 Mbits/secF:toolsiperf -c 10.66.66.8-Client connecting to 10.66.66.8, TCP port 5001TCP window size: 8.00 KByte (default)-1912 local 10.66.123.66 port 1167 connected with 10.66.66.8 port 5001 ID Interval Transfer Bandwidth1912 0.0-10.7 sec 5.98 MBytes 4.68 Mbits/sec(交换机设置)3550(config-if)#service-policy input 10m(IPERF客户端测试结果)F:toolsiperf -c 10.66.66.8-Client connecting to 10.66.66.8, TCP port 5001TCP window size: 8.00 KByte (default)-1912 local 10.66.123.66 port 1171 connected with 10.66.66.8 port 5001 ID Interval Transfer Bandwidth1912 0.0-10.1 sec 11.8 MBytes 9.83 Mbits/secF:toolsiperf -c 10.66.66.8-Client connecting to 10.66.66.8, TCP port 5001TCP window size
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年建筑中级职称模拟试题及参考答案
- 2026年工程经济机模拟试卷带答案
- 2026年企业普法培训模拟试题及参考答案
- 2026年驾考科目四理论模拟试题及参考答案
- 2026年员工考勤制度模拟试题带答案
- 2026年公务员公共基础知识模拟考试试卷(含答案)
- 2026年权威语言模拟试卷及参考答案
- 2026年海洋工程设备调试工程师实战模拟试题(含答案)
- 2026年素描人像模拟试卷及答案
- 2026年一级造价工程师土建计量考试(补考)模拟试题及答案
- 商务英语职业目标规划
- 商会采购管理办法
- 校友见面活动方案
- 医疗纠纷预防和处理条例培训课件
- 《幼儿园组织与管理》自考试题及答案解析
- 妈祖文化课件
- 云南省公路工程试验检测费用指导价
- JB T 5301-2007滚动轴承碳钢球
- 手机信号屏蔽器的应用
- 刘老根大舞台开幕曲简谱乐谱
- 初中地理大气水分与降水课件
评论
0/150
提交评论