What must I add for commands to have the recursive route?
This is what I get if I do a /ip route export
/ip route
add check-gateway=ping comment="Gateway naar de Sonicwall Ring 393" distance=1
gateway=172.16.0.125
add check-gateway=ping comment="Gateway naar de Sonicwall Ring 225" distance=2
gateway=172.16.0.126
add distance=1 dst-address=192.9.201.0/24 gateway=192.9.201.250
This is what I get if I do /ip route print
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
I meant that if you don’t specify dst-address, like in
add check-gateway=ping comment="Gateway naar de Sonicwall Ring 393" distance=1 \
gateway=172.16.0.125
dst-address is implied to be 0.0.0.0/0, i.e. default route.
You want to use a host further down your router to be able to enable meaningful gateway checking; otherwise you would be checking your own router, which doesn’t mean there’s real connectivity to Internet.
For that, you create routes using internet hosts with well-known availability as “gateways”, 8.8.8.8 or 8.8.4.4 for example.
“Problem” is ROS won’t allow you to use a gateway that it isn’t directly reachable.
Look at your directly connected routes: all have a scope of 10. (By default ROS assigns a scope of 10 only to directly connected routes)
In order to make ROS consider these “gateways” as directly reachable, you should lower its (set scope=10 from its default not-directly connected scope of 30) that way you will be able to use them as gateways.