寂寞泪 发表于 2010-7-12 00:55:19

新手求助

接触一个小网吧,大概24台机器
网吧拉了3条ADSL 4M*3
机器已经准备好了,4块8169网卡
本来想用海蜘蛛,但是朋友说还是ROS强大
想来学习下技术
ROS支持4块网卡拨号吗?支持SATA硬盘吗?支持带宽叠加吗?
想用论坛的3.22做实验,请教高手指点小弟,感谢先!

寂寞泪 发表于 2010-7-12 01:23:09

/queue type
add kind=pcq name=up pcq-classifier=src-address pcq-limit=50 pcq-rate=90000 \
    pcq-total-limit=2000
add kind=pcq name=down pcq-classifier=dst-address pcq-limit=50 pcq-rate=4000000 \
    pcq-total-limit=2000
set default-small kind=pfifo name=default-small pfifo-limit=10

/queue simple
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" \
    direction=download disabled=no dst-address=0.0.0.0/0 interface=all \
    limit-at=0/0 max-limit=90000/1500000 name=down parent=none priority=8 \
    queue=up/down target-addresses=192.168.0.0/24 total-queue=default-small
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" \
    direction=upload disabled=no dst-address=0.0.0.0/0 interface=all \
    limit-at=0/0 max-limit=4000000/12000000 name=up parent=none priority=8 \
    queue=up/down target-addresses=192.168.0.0/24 total-queue=default-small

/ip firewall mangle
add action=mark-connection chain=prerouting comment=nth_1 connection-state=\
    new disabled=no new-connection-mark=nth_1 nth=3,1 passthrough=yes \
    src-address=192.168.0.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=nth_1 \
    disabled=no new-routing-mark=routing_1 passthrough=no \
    src-address=192.168.0.0/24
add action=mark-connection chain=prerouting comment=nth_2 connection-state=\
    new disabled=no new-connection-mark=nth_2 nth=2,1 passthrough=yes \
    src-address=192.168.0.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=nth_2 \
    disabled=no new-routing-mark=routing_2 passthrough=no \
    src-address=192.168.0.0/24
add action=mark-connection chain=prerouting comment=nth_3 connection-state=\
    new disabled=no new-connection-mark=nth_3 passthrough=yes \
    src-address=192.168.0.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=nth_3 \
    disabled=no new-routing-mark=routing_3 passthrough=no \
    src-address=192.168.0.0/24

/ip firewall nat
add action=masquerade chain=srcnat comment=1 connection-mark=nth_1 disabled=no \
    out-interface=pppoe-out1
add action=masquerade chain=srcnat comment=2 connection-mark=nth_2 disabled=no \
    out-interface=pppoe-out2
add action=masquerade chain=srcnat comment=3 connection-mark=nth_3 disabled=no \
    out-interface=pppoe-out3
add action=masquerade chain=srcnat comment=nat disabled=no

/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 \
    routing-mark=routing_1
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 \
    routing-mark=routing_2
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out3 \
    routing-mark=routing_3

3条ADSL负载均衡+自动限速脚本,帮忙检查下还有问题么?

chengye 发表于 2010-7-12 05:33:09

本帖最后由 chengye 于 2010-7-12 05:35 编辑

队列部分实际情况处理。
/ip firewall mangle部分要改,你这方法不是最好的,线路利用率不平均。
海蜘蛛可以用,我测了一下他的事宽合并功能,发现有些问题,没能完全利用,也许是合并方式不一样。

WGHBOY 发表于 2010-7-12 14:57:30

还是用pcc吧

寂寞泪 发表于 2010-7-14 08:43:03

队列部分实际情况处理。
/ip firewall mangle部分要改,你这方法不是最好的,线路利用率不平均。
海蜘蛛可 ...
chengye 发表于 2010-7-12 05:33 http://bbs.routerclub.com/images/common/back.gif


    感谢帮助~

寂寞泪 发表于 2010-7-14 08:43:19

还是用pcc吧
WGHBOY 发表于 2010-7-12 14:57 http://bbs.routerclub.com/images/common/back.gif


    不会用PCC哦,我论坛搜索下吧
页: [1]
查看完整版本: 新手求助