找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 6757|回复: 2

[脚本] queue 各时段限速,有突发限速分享

[复制链接]
发表于 2012-4-6 12:46:50 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
dst-address=0.0.0.0/0 interface=all limit-at=0/0 max-limit=0/0 name=hotws parent=none \
    priority=8 queue=100k/2M_Down target-addresses=192.168.112.0/24 time=\
    17h-23h59m30s,sun,mon,tue,wed,thu,fri,sat total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" direction=both disabled=no \
    dst-address=0.0.0.0/0 interface=all limit-at=0/0 max-limit=0/0 name=hot-baitian parent=none \

priority=8 queue=100k/4M_Down target-addresses=192.168.112.0/24 time=\
    0s-16h59m30s,sun,mon,tue,wed,thu,fri,sat total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" direction=both disabled=yes \
   
routeros
 楼主| 发表于 2012-4-6 12:48:51 | 显示全部楼层
queue=100k/2M_Down 自己建立


/queue type
set default kind=pfifo name=default pfifo-limit=50
set ethernet-default kind=pfifo name=ethernet-default pfifo-limit=50
set wireless-default kind=sfq name=wireless-default sfq-allot=1514 sfq-perturb=5
set synchronous-default kind=red name=synchronous-default red-avg-packet=1000 red-burst=20 \
    red-limit=60 red-max-threshold=50 red-min-threshold=10
set hotspot-default kind=sfq name=hotspot-default sfq-allot=1514 sfq-perturb=5
add kind=pcq name=2M pcq-classifier="" pcq-limit=40 pcq-rate=2000000 pcq-total-limit=2000
add kind=pcq name=PCQ-up pcq-classifier=src-address pcq-limit=50 pcq-rate=200000 pcq-total-limit=\
    3000
add kind=pcq name=PCQ-down pcq-classifier=dst-address pcq-limit=50 pcq-rate=64000 pcq-total-limit=\
    2000
add kind=pcq name=100k pcq-classifier=src-address pcq-limit=30 pcq-rate=100000 pcq-total-limit=\
    2000
add kind=pcq name=2M_Down pcq-classifier=dst-address pcq-limit=40 pcq-rate=2000000 \
    pcq-total-limit=2000
add kind=pcq name=4M_Down pcq-classifier=dst-address pcq-limit=40 pcq-rate=4000000 \
    pcq-total-limit=8000
add kind=pcq name=3M-Down pcq-classifier=dst-address pcq-limit=40 pcq-rate=3000000 \
    pcq-total-limit=8000
add kind=pcq name=80k pcq-classifier=src-address pcq-limit=30 pcq-rate=80000 pcq-total-limit=2000
add kind=pcq name=2M_up pcq-classifier=src-address pcq-limit=40 pcq-rate=2000000 pcq-total-limit=\
    2000
add kind=pcq name=4M-UP pcq-classifier=src-address pcq-limit=40 pcq-rate=4000000 pcq-total-limit=\
    8000
add kind=pcq name=3M-up pcq-classifier=src-address pcq-limit=40 pcq-rate=3000000 pcq-total-limit=\
    8000
add kind=pcq name=500kup pcq-classifier=src-address pcq-limit=40 pcq-rate=500000 pcq-total-limit=\
    2000

上面是我的
routeros
回复

使用道具 举报

 楼主| 发表于 2012-4-6 12:50:20 | 显示全部楼层
实现作用是 在白天 00:01 到
17h-23h59m30s 晚上限速
0s-16h59m30s 白天限速
无法上传图片 所以自己摸索把
routeros
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-11-24 06:20 , Processed in 0.043097 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表