Giter VIP home page Giter VIP logo

Comments (4)

leostereo avatar leostereo commented on July 22, 2024

ok , it is working.
Just need to add rtable to param list in the params array.
Added at the end of the list like:

    rtable => {
        _doc => 'choose routing table',
    },

Thanks.

from smokeping-opensshmikrotikrouterosping.

tonydm avatar tonydm commented on July 22, 2024

Hi leostereo,

Very interesting! Glad you isolated the issue and code solution, great work! Curious, the target host was not out the default route, obviously. The default route would, of course, be used if there was no known route (dynamic, static, OSPF, EIGRP, etc) in your Mtik routing table. Do you have two or more WAN facing upstream providers? Or some other unique IP structure for your use case? I had assumed that the target IP you had issue with was a public address and therefore would have been routed out your default 0.0.0.0/0 route. I have used IP->Routes->Rules to direct traffic based on packet marking. In my case it was having multiple upstream providers at different edge RTRs on the same physical network. So I wanted certain IP/IP Blocks to use a given US provider. This sounds like something that should be merged into the project. Do you want to create a pull request with which I will merge? Some additional documentation/explanation of the need to use will be helpful for others too.

~Tony

from smokeping-opensshmikrotikrouterosping.

leostereo avatar leostereo commented on July 22, 2024

Take a look at my routing situation:

[inet@R_BGP] > ip route print where dst-address=0.0.0.0/0
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - 
bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 A S  0.0.0.0/0                         11.32.65.29            20
 1   S  0.0.0.0/0                          11.80.25.1               18
 2   S  0.0.0.0/0                          12.17.50.1             19

As you can see I have 3 upsream providers.
Only one active and 2 backups defautl gateways.
I would like to monitor latency to same internet services for all of them, so , in order to force ping to go for desired default gateway you can use the "route-table" command if previusly created a mark for this route.
As you mentioned, you can craete a policy for every target but this would be very resource consuming for just a ping probe.
Regarding pull request.
sure, lets do.

from smokeping-opensshmikrotikrouterosping.

tonydm avatar tonydm commented on July 22, 2024

Makes perfect sense with the clarification if the multiple default gateways. Do you want to create the Pull Request? I'll verify it and Merge it. Otherwise I'll just incorporate the needed changes to allow for specifying a routing table.

Best!

~Tony

from smokeping-opensshmikrotikrouterosping.

Related Issues (10)

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.