ddname=\"ClassA\"parent=lanpacket-mark=\"\"limit-at=0queue=defaultpriority=8max-limit=100000000burst-limit=0burst-threshold=0burst-time=0sdisabled=no
addname=\"ClassB\"parent=ClassApacket-mark=\"\"limit-at=0queue=defaultpriority=8max-limit=0burst-limit=0burst-threshold=0burst-time=0sdisabled=no
addname=\"Leaf1\"parent=ClassApacket-mark=generallimit-at=0queue=defaultpriority=7max-limit=0burst-limit=0burst-threshold=0burst-time=0sdisabled=no
addname=\"Leaf2\"parent=ClassBpacket-mark=smalllimit-at=0queue=defaultpriority=5max-limit=0burst-limit=0burst-threshold=0burst-time=0sdisabled=no
addname=\"Leaf3\"parent=ClassBpacket-mark=biglimit-at=0queue=defaultpriority=6max-limit=0burst-limit=0burst-threshold=0burst-time=0sdisabled=no
然后是带宽均分:
/ipfirewallmangleaddchain=forwardsrc-address=192.168.0.0/24\\
action=mark-connectionnew-connection-mark=users-con
/ipfirewallmangleaddconnection-mark=users-conaction=mark-packet\\
new-packet-mark=user
SChain=forward
/queuetypeaddname=pcq-downloadkind=pcqpcq-classif
IEr=dst-address
/queuetypeaddname=pcq-uploadkind=pcqpcq-classif
IEr=src-address
/queuetreeaddname=Downloadparent=lanmax-limit=30M
/queuetreeaddparent=Downloadqueue=pcq-downloadpacket-mark=users
/queuetreeaddname=Uploadparent=wanmax-limit=28M
/queuetreeaddparent=Uploadqueue=pcq-uploadpacket-mark=users
请依据直接实践修正IP地址段,下载最大速度,上传最大速度,lan为我衔接内网的网卡,wan是我衔接外网的
网卡。
限制上传速度的剧本:
:foraaafrom2to180do={/queuesimpleaddname=(PC.$aaa)dst-address=(192.168.0..$aaa)limit-at=10000000/3000000max-limit=30000000/3000000}
假如是3.2版本的,这个剧本本人要修正下,
就用这3个局部,其余不需求的,绝比什么智能动态限速好的多,绝对是最正确的
网吧路由器限速!