Code Monkey home page Code Monkey logo

Comments (10)

danieldin95 avatar danieldin95 commented on June 14, 2024

麻烦详细描述下你的使用场景

from openlan.

mynicolas avatar mynicolas commented on June 14, 2024

微信截图_20240115204819
如图所示,我要在vpn客户端point这台服务器添加一条 ip r add 10.200.0.0/16 via 192.168.200.1才可以访问服务端的”其他服务器“,添加路由这一步想让它自动处理。

from openlan.

danieldin95 avatar danieldin95 commented on June 14, 2024

在point的network.json中添加路由配置,point拨上来后会自动拉取路由:

    "routes": [
        {
            "prefix": "10.200.0.0/16",
            "nexthop": "192.168.200.1"
        }
    ],
    "links": [
    ]

from openlan.

mynicolas avatar mynicolas commented on June 14, 2024

/etc/openlan/vswitch/network/network.json
/etc/openlan/point.json
这两个文件我都试了,没生效,具体是指哪个文件?

from openlan.

danieldin95 avatar danieldin95 commented on June 14, 2024

不好意思,你需要提供你的配置信息,不清楚你是否使用example.json? 或者你访问的路径应该是/etc/openlan/switch/network

from openlan.

mynicolas avatar mynicolas commented on June 14, 2024

未命名图片
微信截图_20240116154353

from openlan.

danieldin95 avatar danieldin95 commented on June 14, 2024

请看下/etc/openlan/switch/network/network.json.example哪里有详细的配置,如果在switch下启动point,不需要在/etc/openlan下面做任何的point相关配置,都移动到network目录下。你启动openlan-switch会自动加载links下的point配置,同时路由也会自动加载。

from openlan.

mynicolas avatar mynicolas commented on June 14, 2024

我是在服务端启动了systemctl start openlan-switch;
在客户端启动了 systemctl start openlan-point@testus, 没有启动openlan-switch, 客户端也要启动openlan-switch吗?

from openlan.

danieldin95 avatar danieldin95 commented on June 14, 2024

如果是这么使用,你需要在服务端添加routes,并且不需要添加nexthop。客户端在上线后,会自动拉取路由配置。

from openlan.

mynicolas avatar mynicolas commented on June 14, 2024

搞定了[大拇指]

from openlan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.