通信人家园

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索
查看: 5913|回复: 0
打印

S9306速率限制模版 [复制链接]

军衔等级:

  下士

注册:2009-5-21
跳转到指定楼层
1#
发表于 2017-9-5 21:57:47 |只看该作者 |倒序浏览
S9306的入方向限速为:

首先需要定义acl:
[Quidway] acl number 3000
[Quidway-acl-advanced-3000]rule permit ip

然后定义流分类,来匹配该acl:
[Quidway] traffic classifier c1
[Quidway-classifier-c1]if-match acl 3000

定义流动作,动作里面做限速的配置,此处限速1000kbits/s:举例说明限速1M
[Quidway] traffic behavior b1
[Quidway-behavior-b1] car cir 1000
定义策略,把流行为和流动作关联起来:
[Quidway] traffic policy p1
[Quidway-trafficpolicy-p1]classifier c1 behavior b1

进入端口下下发该策略既可:
[Quidway] interface GigabitEthernet 0/0/1
[Quidway-GigabitEthernet0/0/1] traffic-policy p1 inbound


S9306的出方向限速为:

[Quidway-Ethernet0/0/1] qos lr cir 1000 cbs 200000 注意:cbs=200*cir






2M速率模板(inbound)
[Quidway] acl number 3001
[Quidway-acl-advanced-3001]rule permit ip
[Quidway] traffic classifier 2m
[Quidway-classifier-2m]if-match acl 3001
[Quidway] traffic behavior 2m
[Quidway-behavior-2m] car cir 2000
[Quidway] traffic policy 2m
[Quidway-trafficpolicy-2m]classifier 2m behavior 2m

3M速率模板(inbound)
[Quidway] acl number 3002
[Quidway-acl-advanced-3002]rule permit ip
[Quidway] traffic classifier 3m
[Quidway-classifier-3m]if-match acl 3002
[Quidway] traffic behavior 3m
[Quidway-behavior-3m] car cir 3000
[Quidway] traffic policy 3m
[Quidway-trafficpolicy-3m]classifier 3m behavior 3m

4M速率模板(inbound)
[Quidway] acl number 3003
[Quidway-acl-advanced-3003]rule permit ip
[Quidway] traffic classifier 4m
[Quidway-classifier-4m]if-match acl 3003
[Quidway] traffic behavior 4m
[Quidway-behavior-4m] car cir 4000
[Quidway] traffic policy 4m
[Quidway-trafficpolicy-4m]classifier 4m behavior 4m

6M速率模板(inbound)
[Quidway] acl number 3004
[Quidway-acl-advanced-3004]rule permit ip
[Quidway] traffic classifier 6m
[Quidway-classifier-6m]if-match acl 3004
[Quidway] traffic behavior 6m
[Quidway-behavior-6m] car cir 6000
[Quidway] traffic policy 6m
[Quidway-trafficpolicy-6m]classifier 6m behavior 6m


10M速率模板(inbound)
[Quidway] acl number 3005
[Quidway-acl-advanced-3005]rule permit ip
[Quidway] traffic classifier 10m
[Quidway-classifier-10m]if-match acl 3005
[Quidway] traffic behavior 10m
[Quidway-behavior-10m] car cir 10000
[Quidway] traffic policy 10m
[Quidway-trafficpolicy-10m]classifier 10m behavior 10m

20M速率模板(inbound)
[Quidway] acl number 3006
[Quidway-acl-advanced-3006]rule permit ip
[Quidway] traffic classifier 20m
[Quidway-classifier-20m]if-match acl 3006
[Quidway] traffic behavior 20m
[Quidway-behavior-20m] car cir 20000
[Quidway] traffic policy 20m
[Quidway-trafficpolicy-20m]classifier 20m behavior 20m


30M速率模板(inbound)
[Quidway] acl number 3007
[Quidway-acl-advanced-3007]rule permit ip
[Quidway] traffic classifier 30m
[Quidway-classifier-30m]if-match acl 3007
[Quidway] traffic behavior 30m
[Quidway-behavior-30m] car cir 30000
[Quidway] traffic policy 30m
[Quidway-trafficpolicy-30m]classifier 30m behavior 30m

40M速率模板(inbound)
[Quidway] acl number 3008
[Quidway-acl-advanced-3008]rule permit ip
[Quidway] traffic classifier 40m
[Quidway-classifier-40m]if-match acl 3008
[Quidway] traffic behavior 40m
[Quidway-behavior-40m] car cir 40000
[Quidway] traffic policy 40m
[Quidway-trafficpolicy-40m]classifier 40m behavior 40m


45M速率模板(inbound)
[Quidway] acl number 3009
[Quidway-acl-advanced-3009]rule permit ip
[Quidway] traffic classifier 45m
[Quidway-classifier-45m]if-match acl 3009
[Quidway] traffic behavior 45m
[Quidway-behavior-45m] car cir 45000
[Quidway] traffic policy 45m
[Quidway-trafficpolicy-45m]classifier 45m behavior 45m


50M速率模板(inbound)
[Quidway] acl number 3010
[Quidway-acl-advanced-3010]rule permit ip
[Quidway] traffic classifier 50m
[Quidway-classifier-50m]if-match acl 3010
[Quidway] traffic behavior 50m
[Quidway-behavior-50m] car cir 50000
[Quidway] traffic policy 50m
[Quidway-trafficpolicy-50m]classifier 50m behavior 50m


100M速率模板(inbound)
[Quidway] acl number 3011
[Quidway-acl-advanced-3011]rule permit ip
[Quidway] traffic classifier 100m
[Quidway-classifier-100m]if-match acl 3011
[Quidway] traffic behavior 100m
[Quidway-behavior-100m] car cir 100000
[Quidway] traffic policy 100m
[Quidway-trafficpolicy-100m]classifier 100m behavior 100m




下行端口入方向应用(例如10M速率)
[Quidway] interface GigabitEthernet 0/0/1
[Quidway-GigabitEthernet0/0/1] traffic-policy 10m inbound




下行端口出方向
1M速率
[Quidway-Ethernet0/0/1] qos lr cir 1000 cbs 200000
2M速率
[Quidway-Ethernet0/0/1] qos lr cir 2000 cbs 400000
3M速率
[Quidway-Ethernet0/0/1] qos lr cir 3000 cbs 600000
4M速率
[Quidway-Ethernet0/0/1] qos lr cir 4000 cbs 800000
5M速率
[Quidway-Ethernet0/0/1] qos lr cir 5000 cbs 1000000
6M速率
[Quidway-Ethernet0/0/1] qos lr cir 6000 cbs 1200000
10M速率
[Quidway-Ethernet0/0/1] qos lr cir 10000 cbs 2000000
20M速率
[Quidway-Ethernet0/0/1] qos lr cir 20000 cbs 4000000
30M速率
[Quidway-Ethernet0/0/1] qos lr cir 30000 cbs 6000000
40M速率
[Quidway-Ethernet0/0/1] qos lr cir 40000 cbs 8000000
45M速率
[Quidway-Ethernet0/0/1] qos lr cir 45000 cbs 9000000
50M速率
[Quidway-Ethernet0/0/1] qos lr cir 50000 cbs 10000000
100M速率
[Quidway-Ethernet0/0/1] qos lr cir 100000 cbs 20000000









举报本楼

您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系我们 |网站地图  

GMT+8, 2024-11-29 12:35 , Processed in 0.166381 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部