54SA.COM|专注于系统运维管理,为中国SA提供动力!
Getting online shouldn't be tough. $7.99 .COMs
系统管理员之家Banner
当前位置: 主页 > 信息化 > 网络技术 >

Cisco路由器(2821)交换机(3550)做限速

时间:2011-06-13 09:26来源:未知 编辑:admin

Cisco路由器(cisco 2821)交换机(cisco3550)做限速

1:针对路由器 cisco 2821

rate-limit input 2048000 64000 64000 conform-action transmit exceed-action drop

rate-limit output 2048000 64000 64000 conform-action transmit exceed-action drop

2:针对cisco三层交换机(cisco3550),基本原理是采用mls qos 针对用户IP地址进行限速

限制用户下载流量:eg

mls qos

!

class-map match-all GongXiang2M

match access-group name GongXiang2M

class-map match-all jyjt

match access-group name jyjt

class-map match-all hrtz

match access-group name hrtz

class-map match-all xaam

match access-group name xaam

class-map match-all whxx

match access-group name whxx

class-map match-all flow.2M

match access-group name sdgc

class-map match-all flow.4M

match access-group name sdgc

class-map match-all flow.10M

match access-group name sdgc

class-map match-all zyw

match access-group name zyw

!

!

ip access-list extended GongXiang2M

permit ip any 219.239.7.112 0.0.0.15

permit ip any 219.239.18.216 0.0.0.3

permit ip any 219.239.17.172 0.0.0.3

permit ip any 219.239.17.188 0.0.0.3

permit ip any 219.239.31.120 0.0.0.3

permit ip any 218.247.176.160 0.0.0.3

permit ip any 219.239.6.176 0.0.0.3

ip access-list extended hrtz

permit ip any 219.239.224.192 0.0.0.63

ip access-list extended jyjt

permit ip any 219.239.23.160 0.0.0.31

ip access-list extended sdgc

permit ip any any

ip access-list extended whxx

permit ip any 219.239.24.64 0.0.0.15

ip access-list extended xaam

permit ip any 219.239.23.192 0.0.0.15

ip access-list extended zyw

permit ip any 218.247.190.192 0.0.0.31

policy-map sdgc-down

class hrtz

police 4096000 64000 exceed-action drop

class jyjt

police 2048000 64000 exceed-action drop

class whxx

police 2048000 64000 exceed-action drop

class xaam

police 1000000 8000 exceed-action drop

class GongXiang2M

police 10240000 8000 exceed-action drop

class zyw

police 2048000 64000 exceed-action drop

policy-map 10M

class flow.10M

police 10240000 64000 exceed-action drop

policy-map 4M

class flow.4M

police 4096000 64000 exceed-action drop

policy-map 2M

class flow.2M

police 2048000 64000 exceed-action drop

下载应用于出口:service-policy input sdgc-down

上传应用于每个需要限速的端口 service-policy input 2M

service-policy input 4M

service-policy input 10M

[责任编辑:admin]


------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
用户名:
最新评论 进入详细评论页>>
栏目列表
推荐内容