#############################################################
# MIKROTIK FAILOVER CHECK GATEWAY, RECUSIVE, NETWATCH GENERATOR
# Date/Time:
# By: Ale Ponce - linkme.bio/aleponce
# Failover Method -> CHECK GATEWAY
#############################################################
/ip route
add dst-address="0.0.0.0/0" target-scope="" distance="" gateway="" comment="" check-gateway="ping" scope="30"
add dst-address="0.0.0.0/0" target-scope="" distance="" gateway="" comment="" check-gateway="ping" scope="30"
add dst-address="0.0.0.0/0" target-scope="" distance="" gateway="" comment="" check-gateway="ping" scope="30"
add dst-address="0.0.0.0/0" target-scope="" distance="" gateway="" comment="" check-gateway="ping" scope="30"
add dst-address="0.0.0.0/0" target-scope="" distance="" gateway="" comment="" check-gateway="ping" scope="30"
add dst-address="0.0.0.0/0" target-scope="" distance="" gateway="" comment="" check-gateway="ping" scope="30"
add dst-address="" target-scope="10" distance="1" gateway="" comment="" scope="30"
add dst-address="" target-scope="10" distance="1" gateway="" comment="" scope="30"
add dst-address="" target-scope="10" distance="1" gateway="" comment="" scope="30"
add dst-address="" target-scope="10" distance="1" gateway="" comment="" scope="30"
add dst-address="" target-scope="10" distance="1" gateway="" comment="" scope="30"
add dst-address="" target-scope="10" distance="1" gateway="" comment="" scope="30"
/tool netwatch add host="" interval="5s" down-script="/ip route disable [find comment=\"\"]" up-script="/ip route enable [find comment=\"\"]" comment=""
add host="" interval="5s" down-script="/ip route disable [find comment=\"\"]" up-script="/ip route enable [find comment=\"\"]" comment=""
add host="" interval="5s" down-script="/ip route disable [find comment=\"\"]" up-script="/ip route enable [find comment=\"\"]" comment=""
add host="" interval="5s" down-script="/ip route disable [find comment=\"\"]" up-script="/ip route enable [find comment=\"\"]" comment=""
add host="" interval="5s" down-script="/ip route disable [find comment=\"\"]" up-script="/ip route enable [find comment=\"\"]" comment=""
add host="" interval="5s" down-script="/ip route disable [find comment=\"\"]" up-script="/ip route enable [find comment=\"\"]" comment=""
|