Community discussions

MikroTik App
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

default gateway with recursive lookup

Mon Feb 25, 2019 11:21 pm

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
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1782
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: default gateway with recursive lookup

Tue Feb 26, 2019 12:01 am

 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: default gateway with recursive lookup

Tue Feb 26, 2019 12:30 am

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 /
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: default gateway with recursive lookup

Tue Feb 26, 2019 6:49 pm

I had a default static route to that MT1 from MT3 so I should use scope 30?
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1782
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: default gateway with recursive lookup

Tue Feb 26, 2019 9:18 pm

Correct. Or just don't specify: it will default to it.

In usual situation, you don't need to specify the scopes.
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: default gateway with recursive lookup

Tue Feb 26, 2019 9:32 pm

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?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22373
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: default gateway with recursive lookup

Tue Feb 26, 2019 9:37 pm

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)
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1782
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: default gateway with recursive lookup

Tue Feb 26, 2019 9:59 pm

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
 
kokaKorina
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Oct 31, 2018 5:07 pm

Re: default gateway with recursive lookup

Tue Feb 26, 2019 10:29 pm

Thanks anav and Sebastia