ROS软路由论坛 ROSABC.com 网络方案网络工程交流

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 4904|回复: 1

[交流] 基于源IP地址的优先带宽

[复制链接]
发表于 2008-9-7 18:07:45 | 显示全部楼层
你是怎么做的!HTB你设置了limit-at没有?A主机的limit-at应该大于B主机

下面的脚本是基于bridge桥接做的,没有启用nat,效果还可以
/queue type

add kind=pcq name=up pcq-classifier=src-address pcq-limit=50 pcq-rate=512000 pcq-total-limit=2000
add kind=pcq name=down pcq-classifier=dst-address pcq-limit=50 pcq-rate=2000000 pcq-total-limit=2000

/queue tree
add max-limit=10000000 name=totaldown packet-mark="" parent=ether1 priority=8 queue=default
add max-limit=5000000 name=totalup packet-mark="" parent=ether2 priority=8 queue=default
add max-limit=1000000 name=icmpdown packet-mark=icmp parent=totaldown priority=1 queue=default
add max-limit=9000000 name=other packet-mark=other parent=totaldown priority=8 queue=down
add max-limit=1000000 name=icmpup packet-mark=icmp parent=totalup priority=1 queue=default
add max-limit=5000000 name=otherup packet-mark=other parent=totalup priority=8 queue=up

/ip firewall mangle
add action=mark-connection chain=forward new-connection-mark=ic passthrough=yes protocol=icmp
add action=mark-packet chain=forward connection-mark=ic new-packet-mark=icmp passthrough=no
add action=mark-connection chain=forward new-connection-mark=ot passthrough=yes
add action=mark-packet chain=forward connection-mark=ot new-packet-mark=other passthrough=yes
 楼主| 发表于 2008-9-7 08:10:57 | 显示全部楼层 |阅读模式

马上注册成为ROSABC会员,随时发帖回复。

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

x
局域网内AB机,要求:A机带宽优先于B机,即,不管任何情况下,A机优先获得带宽使用权,本人使用了参照HTB测试不出效果来,可能是水平问题。麻烦YUS大哥给点脚本来。不要叫我再看HTB了,呵呵
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

不良信息举报Q:2000617

软路由

不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流

GMT+8, 2025-8-5 03:20 , Processed in 0.113989 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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