confirming, when you add multiple gateways to a single route with ‘check-gateway=ping’, ‘/ip route nexthop print’ still shows ‘check-gateway=none’ for those gateways
seems like the workaround is adding more routes (for any/fake destination) with each of your gateways:
/ip route
add dst-address=98.6.5.8/32 gateway=1.2.3.4,1.2.3.5
add check-gateway=ping distance=1 dst-address=192.0.0.0/24 gateway=1.2.3.4and now we see
/ip route print detail where dst-address=98.6.5.8/32
0 A S dst-address=98.6.5.8/32 gateway=1.2.3.4,1.2.3.5
gateway-status=1.2.3.4 unreachable,1.2.3.5 reachable via bridge1 distance=1 scope=30 target-scope=10
It is actually still, last RouterOS (6.39.2) has this issue.
But now (i tested 6.39.2) doesn’t work workaround (separete route for GW). For example, I have recursive route and I expect, what when 8.8.4.4 will be unreachable, it will reflect in ECMP route. But this is not so:
[admin@MikroTik] > ip route print detail where dst-address=1.1.1.0/24
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
0 S dst-address=1.1.1.0/24 gateway=8.8.4.4 gateway-status=8.8.4.4 recursive via 192.168.0.1 ether2-ISP2 check-gateway=ping distance=1 scope=30 target-scope=10
[admin@MikroTik] > ping 8.8.4.4
SEQ HOST SIZE TTL TIME STATUS
0 192.168.0.1 84 64 0ms net unreachable
1 192.168.0.1 84 64 0ms net unreachable
sent=2 received=0 packet-loss=100%
[admin@MikroTik] > ip route print detail where dst-address=0.0.0.0/0
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
0 A S dst-address=0.0.0.0/0 gateway=8.8.4.4,8.8.8.8 gateway-status=8.8.4.4 recursive via 192.168.0.1 ether2-ISP2,8.8.8.8 recursive via 10.0.0.138 ether1-ISP1 distance=1 scope=30 target-scope=10
As we see, 8.8.4.4 unreacheble, but “ip route print detail” doesn’t show “gateway-status=8.8.4.4 unreachable”, it look as “gateway-status=8.8.4.4 recursive via 192.168.0.1”
Hello,
Any improvements and changes will be in RouterOS v7.
Best regards,
Maris
07/24/2017 11:33 - Dmitry Krupnik wrote:
Hello,
This answer i saw in forum from 2015 years. It is not “improvements”, it is bug. Why do you don’t fix it in v6? (thank you very mush, for release bug fix each mouth)
Tell me, please, when do you plan to release RouterOS v7?
Best regards,
Dmitry
24.07.2017, 11:36 “Maris (MikroTik Support)”:
Hello,
Any routing related problem requires a lot of code rewrites, which is done only for ROS v7 because of possibility to break something else.
Maybe first beta will be released this year.
Best regards,
Maris
Just an update. I wanted to check if “check gateway by ping” in ECMP was fixed and I tested MikroTik RouterOS v7 beta. ECMP seems to have vanished from it’s usual place. At least in first glances it is not there.
The method Chupaka described, works great though, so no reason to wait for v7 for this to be fixed