Page 1 of 1
default gateway with recursive lookup
Posted: Mon Feb 25, 2019 11:21 pm
by kokaKorina
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
Re: default gateway with recursive lookup
Posted: Tue Feb 26, 2019 12:01 am
by sebastia
Re: default gateway with recursive lookup
Posted: Tue Feb 26, 2019 12:30 am
by kokaKorina
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 /
Re: default gateway with recursive lookup
Posted: Tue Feb 26, 2019 6:49 pm
by kokaKorina
I had a default static route to that MT1 from MT3 so I should use scope 30?
Re: default gateway with recursive lookup
Posted: Tue Feb 26, 2019 9:18 pm
by sebastia
Correct. Or just don't specify: it will default to it.
In usual situation, you don't need to specify the scopes.
Re: default gateway with recursive lookup
Posted: Tue Feb 26, 2019 9:32 pm
by kokaKorina
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?
Re: default gateway with recursive lookup
Posted: Tue Feb 26, 2019 9:37 pm
by anav
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)
Re: default gateway with recursive lookup
Posted: Tue Feb 26, 2019 9:59 pm
by sebastia
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?
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 ... _Scripting
Re: default gateway with recursive lookup
Posted: Tue Feb 26, 2019 10:29 pm
by kokaKorina
Thanks anav and Sebastia