everest79 发表于 2007-11-25 15:33:58

pcq限速

/ ip firewall mangle

add chain=prerouting action=mark-packet new-packet-mark=packet-all \
       passthrough=yes comment="" disabled=no

/ queue type
add name="global-up" kind=pcq pcq-rate=64000 pcq-limit=50 \
    pcq-classifier=src-address pcq-total-limit=2000
add name="global-down" kind=pcq pcq-rate=256000 pcq-limit=50 \
    pcq-classifier=dst-address pcq-total-limit=2000


/ queue tree
add name="global-down" parent=LAN packet-mark=packet-all limit-at=0 \
    queue=global-down priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no
add name="global-up" parent=global-out packet-mark=packet-all limit-at=0 \
    queue=global-up priority=8 max-limit=0 burst-limit=0 burst-threshold=0 \
    burst-time=0s disabled=no


以上脚本红色处换为WAN,将会把所有上传当做一个子队列来处理
蓝色处换为global-in,那么上传速度也会在下载队列平均速度中显示
求解
页: [1]
查看完整版本: pcq限速