Code: Select all
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 pref-src="" routing-table=main scope=30 suppress-hw-offload=no target-scope=10 comment=ISP1
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.254.254 pref-src="" routing-table=main scope=30 suppress-hw-offload=no target-scope=10 comment=ISP2
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=172.17.254.1 pref-src="" routing-table=main scope=30 suppress-hw-offload=no target-scope=10 comment=ISP2
Code: Select all
/tool netwatch
add host=8.8.8.8 interval=10s down-script="/ip route disable [find comment=ISP1]" up-script="/ip route enable [find comment=ISP1]"
/ip route
add check-gateway=ping comment="Netwatch ISP1" distance=1 dst-address=8.8.8.8/32 gateway=IPofISP
Code: Select all
/ip route
add check-gateway=ping comment="Netwatch ISP1" distance=1 dst-address=8.8.8.8/32 gateway=192.168.1.1 routing-table=main
And one more thing. Ive noticed that in my new router with new version in the IP Routes that has "DAC" in the ISP, it no longer says reachable and if i open nexthops tab its gateway state is unreachable. But the internet is working. Hope someone could enlighten me about this. Thanks!