V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yanest
V2EX  ›  Raspberry Pi

Raspberry pi B+ 作为路由器是不是性能不行啊?

  •  
  •   yanest · 2015-03-02 20:27:13 +08:00 · 5034 次点击
    这是一个创建于 3342 天前的主题,其中的信息可能已经有所发展或是发生改变。
    ping baidu经常会有 dup

    4 bytes from 180.149.131.205: icmp_seq=14 ttl=53 time=30.082 ms (DUP!)
    64 bytes from 180.149.131.205: icmp_seq=15 ttl=53 time=37.414 ms
    64 bytes from 180.149.131.205: icmp_seq=16 ttl=53 time=34.177 ms
    64 bytes from 180.149.131.205: icmp_seq=17 ttl=53 time=32.146 ms
    64 bytes from 180.149.131.205: icmp_seq=18 ttl=53 time=44.563 ms
    64 bytes from 180.149.131.205: icmp_seq=19 ttl=53 time=28.164 ms
    64 bytes from 180.149.131.205: icmp_seq=20 ttl=53 time=35.856 ms
    64 bytes from 180.149.131.205: icmp_seq=21 ttl=53 time=29.893 ms
    64 bytes from 180.149.131.205: icmp_seq=22 ttl=53 time=32.372 ms
    64 bytes from 180.149.131.205: icmp_seq=23 ttl=53 time=27.706 ms
    64 bytes from 180.149.131.205: icmp_seq=24 ttl=53 time=29.599 ms
    64 bytes from 180.149.131.205: icmp_seq=25 ttl=53 time=39.687 ms
    64 bytes from 180.149.131.205: icmp_seq=25 ttl=53 time=54.215 ms (DUP!)
    64 bytes from 180.149.131.205: icmp_seq=26 ttl=53 time=45.
    9 条回复    2015-11-19 18:52:54 +08:00
    zent00
        1
    zent00  
       2015-03-02 20:32:12 +08:00
    负载很高么?有没有手动设置过静态路由?
    yanest
        2
    yanest  
    OP
       2015-03-02 21:36:02 +08:00 via iPhone
    负载不高啊,用了一个usb网卡连接别的路由,有线网络连了一个AP
    zent00
        3
    zent00  
       2015-03-02 21:45:26 +08:00
    确定没有哪里形成环路?
    yanest
        4
    yanest  
    OP
       2015-03-02 21:49:27 +08:00
    @zent00 不应该有环路啊。
    iptables是这么设置的
    Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
    pkts bytes target prot opt in out source destination
    325K 35M MASQUERADE all -- * * 0.0.0.0/0 0.0.0.0/0
    yanest
        5
    yanest  
    OP
       2015-03-02 22:00:53 +08:00
    @zent00
    奇了怪了。只有我一个人上网,还是这样
    把iptables又调整了一下,还是不行。
    -A POSTROUTING -s 192.168.11.0/24 -o wlan0 -j MASQUERADE
    ryd994
        6
    ryd994  
       2015-03-03 00:30:45 +08:00 via Android
    有静态外网IP时不用masquerade用snat
    usb的话性能还是很受限的,毕竟读写都是占cpu的
    ohyeah521
        7
    ohyeah521  
       2015-03-03 00:44:55 +08:00
    大家有什么有什么性能高,时候做路由器的班子推荐一个。
    lbp0200
        8
    lbp0200  
       2015-05-17 18:06:26 +08:00
    @ohyeah521 (*宝)香蕉派路由器开发板,小贵。
    andrewhxism
        9
    andrewhxism  
       2015-11-19 18:52:54 +08:00
    我只能说,即使性能不行,也不至于 ping 包导致 DUP ……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2791 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 12:25 · PVG 20:25 · LAX 05:25 · JFK 08:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.