找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3724|回复: 5

[其它] 新手求助

[复制链接]
发表于 2010-7-12 00:55:19 | 显示全部楼层 |阅读模式

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

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

×
接触一个小网吧,大概24台机器
网吧拉了3条ADSL 4M*3
机器已经准备好了,4块8169网卡
本来想用海蜘蛛,但是朋友说还是ros强大
想来学习下技术
ROS支持4块网卡拨号吗?支持SATA硬盘吗?支持带宽叠加吗?
想用论坛的3.22做实验,请教高手指点小弟,感谢先!
routeros
 楼主| 发表于 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负载均衡+自动限速脚本,帮忙检查下还有问题么?
routeros
回复

使用道具 举报

发表于 2010-7-12 05:33:09 | 显示全部楼层
本帖最后由 chengye 于 2010-7-12 05:35 编辑

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

使用道具 举报

发表于 2010-7-12 14:57:30 | 显示全部楼层
还是用pcc吧
routeros
回复

使用道具 举报

 楼主| 发表于 2010-7-14 08:43:03 | 显示全部楼层
routeros
回复

使用道具 举报

 楼主| 发表于 2010-7-14 08:43:19 | 显示全部楼层



    不会用PCC哦,我论坛搜索下吧
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-10-1 05:30 , Processed in 0.051318 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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