Hello everyone
I had posted some days ago and I had asked how to make sure if the default gateway is up and is passing traffic. I know the configurations But I am confused with scope and target scope.
I had one three mikrotiks attach to one switch for example MT1 MT2 and MT3 . For MT3 mt 1 and mt2 are default gateways. mt2 is with AD of 10 and mt 1 is with AD 1. So what should i put for scope and target scope if i put 30 or 10 does it make any difference?
Thanks
Hey, it does matter
https://wiki.mikrotik.com/wiki/Manual:IP/Route#Nexthop_lookup
sebastia Thanks for replying but that wiki I cannot understand I spent a whole week on it its confusing do you have any example or simple explanation for this scope and target scope difference?
In my case should I put 10 in target scope or 30 /
I had a default static route to that MT1 from MT3 so I should use scope 30?
Correct. Or just don’t specify: it will default to it.
In usual situation, you don’t need to specify the scopes.
if I do not specify does scope or target scope the recursive is still going to work ? is not the scope and target scope that makes the route recursive?
Interesting question, I have not played with scope and perhaps its time to have that discussion!!
Normally I just ensure my distance settings ensure that my first public DNS server lines up with its two rules (distance=X)
and my second backup dns server lines up with its two rules but of higher number distance. and finally (distance=X+1)
my backup WAN has a higher number distance than the previous two. (distance=X+10)
Finally to access my backup ISP email (our accounts) i ensure I use the lowest distance (distance=X-1)
For recursive you’ll need to force scope for some routes to be “local” = connected, so they could be resolved again => recursive.
As shown here: https://wiki.mikrotik.com/wiki/Advanced_Routing_Failover_without_Scripting
Thanks anav and Sebastia