I added 2 scripts to my DHCP CLIENTS on my 2 interfaces to update the Gateway on a new DHCP request. Basically pulling my Gateway from the DHCP client and punching it into the routing rules were 10.111.0.1 and 10.112.0.1 where in the sample.
It doesn’t work.
This config looks pretty different from how I had to do it in 6.x
I guess the main question is… is this one of these things that is “Flakey/Broken” in 7.x?
There are changes in RouterOS v7 nexthop lookup.
Routes are processed in scope order, and updates to routes with a larger scope cannot affect the state of nexthop lookup for routes with a smaller scope.
Wrong question.
The question you should be asking is why isnt the recursive routing information you should have followed here not working.
If its not working, then I need to fix the documentation.
In other words, all you are doing is spouting conjecture.,
Prove it!
Please post your config!!
/export file=anynameyouwish ( minus serial number and any public WANIP Info )
Your version 6 working recursive will be fine, I can build working V7 from that, and the version I provide will work for both!
Its the least I can for a neighbour!! But please try to warm up all that cold canadian air before it circles back to the east coast LOL
But the labels are used to allow scripts to update variables that change with DHCP requests.
And to flush the connections when the back up changes status.
The mangle was to allow a connection on the back up when it is not the primary. Connect to the system over the backup ISP even though the main is active.
Since you have WAN1 which is the primary its distance should be shorter than the Backup and thus all users will get routed to WAN1 when available.
It appears you are comfortable using a common DNS provider for the “in between” recursive routing.
This will work as a basic recursive setup… The secondary route, the backup does NOT need recursive as if the primary is down, the secondary is all you have…
/ip route
add check-gateway=ping distance=3 dst-address=0.0.0.0/0 gateway=1.0.0.1 scope=10 target-scope=12
add distance=3 dst-address=1.0.0.1/32 gateway=PrimaryISP-gatewayIP scope=11 target-scope=11
add comment=SecondaryISP distance=10 dst-address=0.0.0.0/0 gateway=SecondaryISP-gatewayIP scope=10 target-scope=30
You can add to this by using two different addresses recursively and in this case you do this by increasing the distance between the two recursive check so one is done and if no connection it moves to a second checkpoint on the www.
Whatever gotsprings did there, its complete BS IMHO.
What are your requirements 2 WANs, 3 WANs… ?
Both public or private IPs, dynamic/static?
There are two approaches to recursive…
FLAT
NESTED
Flat is basically one DNS server IP to one WAN ISP
You can can add more DNS per WAN ISP
Nested is basically using a faux address going nowhere and then use DNS all pointing to the Faux IP.
Its a bit more efficient when you have many WANs and want more than one recursive per WAN.
Not complete BS since it’s working, where many exemples on the forum are not working anymore with Ros7 (was working in RoS6). My setup is pretty simple, 2 wans,1 fiber and 1 lte, and the active link should switch to lte when the fiber is down. My gateways are local equipements, so It will answer to ping even if the service is down. I saw other way to do it with different routing table, or mangle, but this way is simpler imo and kind of like the way I did it in RoS6. The main difference seems to be the “scope”. And the fake addresses…
I am coming around to the idea that I am not going to let customers or clients convince me to use recursive rollover.
Its just NOT GOOD ENOUGH anymore…
VoIP
VIDEO over IP
Internet delivered video services
Hell logging me out of connections because the public IP not only changed… it changed geographic location…
And I am not the sort to start my explanation with.. “Well I know this sucks and has problems with ABCDEF. But it costs money to do it right…”