V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
huntley
V2EX  ›  宽带症候群

关于 zerotier 和软路由的问题

  •  
  •   huntley · 2022-05-18 23:02:30 +08:00 · 1010 次点击
    这是一个创建于 680 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我家的网络结构是这样的:电信光猫拨号 - R4S(openwrt) - linksys velop - 交换机 - 其他 velop
    R4S 用来科学上网, 用 velop 来 mesh 组网把各楼层和房间连在一个局域网内。

    因为 R4S 是 192.168.2.0/24 段的,而 velop 组的 mesh 网络 lan 口是在 10.171.1.0/24 段的,所以我在 R4S 上设置好 zerotier 后,从外网只能访问到 R4S ,而无法访问 velop 网络下面的所有设备。

    请问这种情况应该怎么办?
    第 1 条附言  ·  2022-05-19 02:16:03 +08:00
    把 velop 改成 ap mode 就好了。光猫懒得折腾了。谢谢各位!
    12 条回复    2022-05-19 08:37:48 +08:00
    ggf
        1
    ggf  
       2022-05-18 23:04:54 +08:00
    静态路由蟹蟹
    ggf
        2
    ggf  
       2022-05-18 23:06:36 +08:00
    其实 zt web controller 是可以 add route 的
    huntley
        3
    huntley  
    OP
       2022-05-18 23:07:29 +08:00
    @ggf 请问是把 velop 设置成静态 IP 吗
    EVJohn
        4
    EVJohn  
       2022-05-18 23:07:32 +08:00
    为啥要多加一层 nat
    huntley
        5
    huntley  
    OP
       2022-05-18 23:14:15 +08:00
    @EVJohn 房子有点大,网线布置得不好,导致 velop 路由器隔远了相互之间接受不到信号,无法无线 mesh ,然后我就用这种方式组有线的了。
    EVJohn
        6
    EVJohn  
       2022-05-18 23:16:42 +08:00
    config route
    EVJohn
        7
    EVJohn  
       2022-05-18 23:19:10 +08:00
    config route
    option interface 'lan'
    option target '10.171.1.0'
    option netwrok '255.255.255.0'
    option gateway '192.168.2.1'
    EVJohn
        8
    EVJohn  
       2022-05-18 23:20:17 +08:00
    velop 路由器不能设定为 ap mode 吗,dhcp 服务移交给 r4s
    Kiriya
        9
    Kiriya  
       2022-05-18 23:55:02 +08:00
    光猫改桥接-R4S 拨号并将网段改为 10.171.1.0/24 -linksys velop 关闭 DHCP 这样可以减少 2 层 NAT ,增加打洞效率
    huntley
        10
    huntley  
    OP
       2022-05-19 00:20:50 +08:00
    @Kiriya 请问如何能获得光猫的超级密码?
    huntley
        11
    huntley  
    OP
       2022-05-19 00:22:33 +08:00
    @EVJohn 可以,之前没想到这点。
    Kiriya
        12
    Kiriya  
       2022-05-19 08:37:48 +08:00
    搜索光猫型号超级密码获取
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3012 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:04 · PVG 08:04 · LAX 17:04 · JFK 20:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.