码迷,mamicode.com
首页 > 系统相关 > 详细

cisco路由器限制速度的方法

时间:2016-12-08 00:06:36      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:路由器

cisco 限速步骤

1、设置ACL
access-list 102 permit ip host 192.168.10.2 any
access-list 102 permit ip any host 192.168.10.2
access-list 103 permit ip host 192.168.10.3 any
access-list 103 permit ip any host 192.168.10.3
2、定义类
class-map match-all 102
match access-group 102
class-map match-all 103
match access-group 103
3、将类加入策略中
policy-map xiansu
class 102
police 1024000 128000 conform-action transmit exceed-action drop
class 103
police 1024000 128000 conform-action transmit exceed-action drop
4、将策略加入端口中
interface FastEthernet0/0
service-policy input xiansutest
service-policy output xiansutest 


针对某个网段进行限速(限定的是总带宽)
(1)设置ACL
access-list 110 permit ip 192.168.10.0 0.0.0.255 any
access-list 110 permit ip any 192.168.10.0 0.0.0.255
(2)定义类
class-map match-all 110
match access-group 110
(3)设置策略
policy-map xiansu110
class 110
police 10240000 1280000 conform-action transmit exceed-action drop
(4)将策略加入端口
interface FastEthernet0/0
service-policy input xiansu110
service-policy output xiansu110 

cisco路由器限制速度的方法

标签:路由器

原文地址:http://12297244.blog.51cto.com/12287244/1880403

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!