{"id":30,"date":"2025-11-08T17:43:11","date_gmt":"2025-11-08T17:43:11","guid":{"rendered":"https:\/\/vyos.web.id\/?p=30"},"modified":"2026-02-06T08:59:43","modified_gmt":"2026-02-06T08:59:43","slug":"script-mikrotik-check-internet","status":"publish","type":"post","link":"https:\/\/vyos.web.id\/?p=30","title":{"rendered":"Script mikrotik: check-internet"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>:local target 8.8.8.8<br>:if ([\/ping $target count=5] = 0) do={<br>\/ip route set [find comment=&#8221;ISP1&#8243;] disabled=yes<br>\/ip route set [find comment=&#8221;ISP2&#8243;] disabled=no<br>:log warning &#8220;ISP1 DOWN! Switch ke ISP2&#8221;<br>} else={<br>\/ip route set [find comment=&#8221;ISP1&#8243;] disabled=no<br>\/ip route set [find comment=&#8221;ISP2&#8243;] disabled=yes<br>}<br>Scheduler (tiap 1 menit):<\/p>\n\n\n\n<p>\/system scheduler add name=check-internet interval=1m on-event=check-internet<\/p>\n","protected":false},"excerpt":{"rendered":"<p>:local target 8.8.8.8:if ([\/ping $target count=5] = 0) do={\/ip route set [find comment=&#8221;ISP1&#8243;] disabled=yes\/ip route set [find comment=&#8221;ISP2&#8243;] disabled=no:log warning &#8220;ISP1 DOWN! Switch ke ISP2&#8221;} else={\/ip route set [find comment=&#8221;ISP1&#8243;] disabled=no\/ip route set [find comment=&#8221;ISP2&#8243;] disabled=yes}Scheduler (tiap 1 menit): \/system scheduler add name=check-internet interval=1m on-event=check-internet<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-mikrotik"],"_links":{"self":[{"href":"https:\/\/vyos.web.id\/index.php?rest_route=\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vyos.web.id\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vyos.web.id\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vyos.web.id\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vyos.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=30"}],"version-history":[{"count":2,"href":"https:\/\/vyos.web.id\/index.php?rest_route=\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":54,"href":"https:\/\/vyos.web.id\/index.php?rest_route=\/wp\/v2\/posts\/30\/revisions\/54"}],"wp:attachment":[{"href":"https:\/\/vyos.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vyos.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vyos.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}