找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2751|回复: 10

[其它] 我用ros28.28,客户端一有人下载就很慢!

[复制链接]
发表于 2006-5-9 15:34:12 | 显示全部楼层 |阅读模式

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

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

×
我用ros28.28,客户端一有人下载就很慢!
我这个版本是从cnrot 上下的,做了nat和针对每个ip的限速,其它都没有作。每个ip限了100k/40k,但只要有一个ip下载,都会整个网络很慢,(不是用bt,普通下载也会慢)
请问各位有没有碰到这种情况,怎么解决?
routeros
发表于 2006-5-9 23:25:57 | 显示全部楼层
没有出现过这样的情况,把你的设置放上来看看
routeros
回复

使用道具 举报

 楼主| 发表于 2006-5-10 14:50:09 | 显示全部楼层
路由设置
/ ip route
add dst-address=0.0.0.0/0 preferred-source=0.0.0.0 gateway=218.19.168.1 distance=1 comment="" disabled=no
add dst-address=210.38.32.191/32 preferred-source=0.0.0.0 gateway=192.168.70.1 distance=1 comment="" disabled=no
add dst-address=210.38.32.192/32 preferred-source=0.0.0.0 gateway=192.168.70.1 distance=1 comment="" disabled=no
add dst-address=202.116.41.230/32 preferred-source=0.0.0.0 gateway=192.168.70.1 distance=1 comment="" disabled=no
add dst-address=202.116.41.232/32 preferred-source=0.0.0.0 gateway=192.168.70.1 distance=1 comment="" disabled=no
add dst-address=172.16.0.0/24 preferred-source=0.0.0.0 gateway=192.168.70.1 distance=1 comment="" disabled=no
add dst-address=172.17.0.0/16 preferred-source=0.0.0.0 gateway=192.168.70.1 distance=1 comment="" disabled=no
add dst-address=192.168.43.0/24 preferred-source=0.0.0.0 gateway=192.168.70.1 distance=1 comment="" disabled=no
以下是接口设置
/ interface ethernet
set dlin_lan name="dlin_lan" mtu=1500 arp=enabled disable-running-check=yes auto-negotiation=yes full-duplex=yes \
    cable-settings=default speed=100Mbps disabled=no
set up_adsl name="up_adsl" mtu=1500 arp=enabled disable-running-check=yes auto-negotiation=yes full-duplex=yes \
    cable-settings=default speed=100Mbps disabled=no
set min_wan name="min_wan" mtu=1500 arp=enabled disable-running-check=yes auto-negotiation=yes full-duplex=yes \
    cable-settings=default speed=100Mbps disabled=no
/ interface wireless align
set frame-size=300 active-mode=yes receive-all=no audio-monitor=00:00:00:00:00:00 filter-mac=00:00:00:00:00:00 \
    ssid-all=no frames-per-second=25 audio-min=-100 audio-max=-20
/ interface pptp-server server
set enabled=no mtu=1460 mru=1460 authentication=mschap2,mschap1 keepalive-timeout=30 default-profile=default
/ interface pppoe-client
add name="pppoe-out" mtu=1480 mru=1480 interface=up_adsl user="gzDSL82373502" password="lnlib123" profile=default \
    service-name="" ac-name="" add-default-route=no dial-on-demand=no use-peer-dns=no allow=mschap2,mschap1,chap,pap \
    disabled=no
/ interface l2tp-server server
set enabled=no mtu=1460 mru=1460 authentication=mschap2,mschap1,chap,pap default-profile=default
/ interface bridge port
set dlin_lan bridge=none priority=128 path-cost=10
set up_adsl bridge=none priority=128 path-cost=10
routeros
回复

使用道具 举报

 楼主| 发表于 2006-5-10 14:52:18 | 显示全部楼层
/ queue simple
add name="2" target-address=0.0.0.0/0 dst-address=192.168.150.2/32 interface=pppoe-out queue=default priority=8 \
    limit-at=81920/30720 max-limit=81920/30720 disabled=no
。。。。。。
add name="254" target-address=0.0.0.0/0 dst-address=192.168.150.254/32 interface=pppoe-out queue=default priority=8 \
    limit-at=81920/30720 max-limit=81920/30720 disabled=no
routeros
回复

使用道具 举报

 楼主| 发表于 2006-5-10 16:12:11 | 显示全部楼层
uptime: 1d18h19m14s
                free-memory: 103972 kB
               total-memory: 127520 kB
                        cpu: Pentium
              cpu-frequency: 651 MHz
                   cpu-load: 0
             free-hdd-space: 38804024 kB
            total-hdd-space: 38880704 kB
    write-sect-since-reboot: 1016
           write-sect-total: 46856

这是我系统的状况

[ 本帖最后由 95dot8 于 2006-5-10 16:19 编辑 ]
routeros
回复

使用道具 举报

 楼主| 发表于 2006-5-10 16:15:32 | 显示全部楼层
/ ip address
add address=192.168.150.1/24 network=192.168.150.0 broadcast=192.168.150.255 interface=under_lan comment="added by setup" \
    disabled=no
add address=192.168.70.111/24 network=192.168.70.0 broadcast=192.168.70.255 interface=min_wan comment="" disabled=no

/ ip firewall mangle
add protocol=tcp tcp-options=syn-only action=accept tcp-mss=1448 comment="" disabled=no

/ ip firewall src-nat
add src-address=192.168.150.0/24 action=masquerade comment="" disabled=no

/ ip dns
set primary-dns=202.96.128.166 secondary-dns=61.144.56.101 allow-remote-requests=no cache-size="2048 kB" cache-max-ttl=7d
/ ip dns static
add name="local" address=202.96.128.68 ttl=1d

其它的我都没有改动过,我也想不明白为什么一下载就会很慢!还经常ping网关会掉包
routeros
回复

使用道具 举报

 楼主| 发表于 2006-5-11 09:05:59 | 显示全部楼层
精品兄,不在吗?帮我看看什么问题。。。。。。。。先谢了!
其它大虾们有什么高见,也请说一下,让我这个菜鸟学一下。
另外,如果我想在adsl断开的时候,所有数据都走192.168.70.1这一个网关出去,正常的时候从ad(网关218.19.168.1)出去,该怎么做?据说是用脚本实现的,但不太会弄。。。。。。

[ 本帖最后由 95dot8 于 2006-5-11 09:07 编辑 ]
routeros
回复

使用道具 举报

发表于 2006-5-11 12:06:46 | 显示全部楼层
你把queue的interface改成all,还有limit-at不需要,这个是最小带宽保证
试一试
routeros
回复

使用道具 举报

 楼主| 发表于 2006-5-11 14:59:23 | 显示全部楼层
bill兄,我按照你的意见改了,问题依然。。。。。。。。。而且interface改成all行不能,因为我如果从192.168.70.1这个网关走的话都是一些局域网的数据流,这个速度不能限制,只是从ad出去的才要进行限速。
还有断线自动切换的问题怎么弄,有没有能告诉我啊?

[ 本帖最后由 95dot8 于 2006-5-11 15:02 编辑 ]
routeros
回复

使用道具 举报

发表于 2006-5-13 15:31:38 | 显示全部楼层
81920/30720 是什么意识啊?
1024*100*8=819200
1024*40*8=327680
我笨点,请指教一下
routeros
回复

使用道具 举报

 楼主| 发表于 2006-5-16 09:19:36 | 显示全部楼层
原帖由 jeff 于 2006-5-13 15:31 发表
81920/30720 是什么意识啊?
1024*100*8=819200
1024*40*8=327680
我笨点,请指教一下


手误,呵呵
原因查出来了,原来是我的一个网卡有问题,换了个新的intelpro100就没有问题了。。。。。。汗一个

[ 本帖最后由 95dot8 于 2006-5-16 10:38 编辑 ]
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-20 19:06 , Processed in 0.057776 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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