You are on page 1of 1

/ip route

add dst-address="0.0.0.0/0" target-scope="10" distance="1" gateway="192.168.4.1"


comment="ISP-STP" scope="30"
add dst-address="0.0.0.0/0" target-scope="10" distance="2" gateway="172.16.194.77"
comment="ISP-TRIMEGAH" scope="30"
add dst-address="0.0.0.0/0" target-scope="10" distance="3" gateway="192.168.100.1"
comment="ISP-INDIHOME" scope="30"
add dst-address="8.8.8.8" target-scope="10" distance="1" gateway="192.168.4.1"
comment="ISP-STP-Check" scope="30"
add dst-address="1.1.1.1" target-scope="10" distance="1" gateway="172.16.194.77"
comment="ISP-TRIMEGAH-Check" scope="30"
add dst-address="9.9.9.9" target-scope="10" distance="1" gateway="192.168.100.1"
comment="ISP-INDIHOME-Check" scope="30"
/tool netwatch
add host="8.8.8.8" interval="5s" down-script="/ip route disable [find
comment=\"ISP-STP\"]" up-script="/ip route enable [find comment=\"ISP-STP\"]"
comment="ISP-STP"
add host="1.1.1.1" interval="5s" down-script="/ip route disable [find
comment=\"ISP-TRIMEGAH\"]" up-script="/ip route enable [find comment=\"ISP-
TRIMEGAH\"]" comment="ISP-TRIMEGAH"
add host="9.9.9.9" interval="5s" down-script="/ip route disable [find
comment=\"ISP-INDIHOME\"]" up-script="/ip route enable [find comment=\"ISP-
INDIHOME\"]" comment="ISP-INDIHOME"

You might also like