我用ros28.28,客户端一有人下载就很慢!
我用ros28.28,客户端一有人下载就很慢!我这个版本是从cnrot 上下的,做了nat和针对每个ip的限速,其它都没有作。每个ip限了100k/40k,但只要有一个ip下载,都会整个网络很慢,(不是用bt,普通下载也会慢)
请问各位有没有碰到这种情况,怎么解决? 没有出现过这样的情况,把你的设置放上来看看 路由设置
/ 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 / 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 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 编辑 ] / 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网关会掉包 精品兄,不在吗?帮我看看什么问题。。。。。。。。先谢了!
其它大虾们有什么高见,也请说一下,让我这个菜鸟学一下。
另外,如果我想在adsl断开的时候,所有数据都走192.168.70.1这一个网关出去,正常的时候从ad(网关218.19.168.1)出去,该怎么做?据说是用脚本实现的,但不太会弄。。。。。。
[ 本帖最后由 95dot8 于 2006-5-11 09:07 编辑 ] 你把queue的interface改成all,还有limit-at不需要,这个是最小带宽保证
试一试 bill兄,我按照你的意见改了,问题依然。。。。。。。。。而且interface改成all行不能,因为我如果从192.168.70.1这个网关走的话都是一些局域网的数据流,这个速度不能限制,只是从ad出去的才要进行限速。
还有断线自动切换的问题怎么弄,有没有能告诉我啊?
[ 本帖最后由 95dot8 于 2006-5-11 15:02 编辑 ] 81920/30720 是什么意识啊?
1024*100*8=819200
1024*40*8=327680
我笨点,请指教一下 原帖由 jeff 于 2006-5-13 15:31 发表
81920/30720 是什么意识啊?
1024*100*8=819200
1024*40*8=327680
我笨点,请指教一下
手误,呵呵
原因查出来了,原来是我的一个网卡有问题,换了个新的intelpro100就没有问题了。。。。。。汗一个
[ 本帖最后由 95dot8 于 2006-5-16 10:38 编辑 ]
页:
[1]