常州五颜六色网络技术有限公司 -> 技术文档 -> Cisco VLAN限速 登录 -> 注册 -> 回复主题 -> 发表主题

deserts 2010-01-21 01:53
直接对VLAN限速是不可以的,可以对VLAN的IP地址范围进行限速。
Cisco Traffic Policing配置命令
汉远网智IT咨询 CNS_DOC_08122303
命令行注解
命令行 解释
police bps burst-normal burst-max conform-action action exceed-action action violate-action action 采用令牌桶方式对流量进行限速,该命令使用在Police策略命令中
配置举例:
router(config)#access-list 1 permit any //用ACL划分一个需要限速的IP地址范围。
类配置
router(config)# class-map classmap1 //配置一个名为classmap1的class-map
router(config-cmap)# match access-group 1 //包含ACL1的地址范围
router(config-cmap)# exit
策略配置
router(config)# policy-map police1 //配置一个名为police1的流量策略
router(config-pmap)# class classmap1 //该策略引用classmap1
router(config-pmap-c)# police 4000 1000 2000 conform-action transmit exceed-action set-qos-transmit 4 violate-action drop
//设置平均每秒4000 bits,正常的流量为1000bytes,超额的流量2000bytes。如果流量为正常则将优先级设置为4,如果流量为超额则数据包丢弃。
router(config-pmap-c)# exit
router(config-pmap)# exit
策略引用
router(config)# interface fastethernet 0/0
router(config-if)# service-policy input police
//将该策略用在f0/0接口上。


from:http://www.chinanetwork.com.cn/forum/default.aspx?g=posts&m=65

deserts 2010-01-21 02:12
vlan可以做速率限制的,给你cisco交换机的配置参考下吧:
switch#config t
switch(config)#int vlan 117
switch(config-if)#rate-limit input 6000000 8000000 10000000 conform-action transmit exceed-action drop
最后那句意思就是限制了,正常限制在6Mb/s,正常突发在8Mb/s,最大突发在10Mb/s,符合的流量就进行传输,超过的流量就丢弃
其实你划了vlan后,vlan之间是不能访问的,也就是去到vlan20的流量是不会跑到vlan30去的,更何况网络数据传输不可能永久都在对线路保持全速的占用,所以不必太担心带宽被占用的问题,我觉得你可以先从限制vlan10的流量开始试试,有效的话,再按同样的方法限制vlan20和vlan30


from:http://wenwen.soso.com/z/q49458084.htm


查看完整版本: [-- Cisco VLAN限速 --] [-- top --]



Copyright © 2005-2014 5y6s Inc. 苏ICP备05001866号 Powered by PHPWind 5.0.1
Time 0.009950 second(s),query:6 Gzip enabled