{"id":829,"date":"2020-11-19T10:24:52","date_gmt":"2020-11-19T07:24:52","guid":{"rendered":"https:\/\/mamaevbor.tk\/wiki\/?p=829"},"modified":"2021-04-02T07:48:32","modified_gmt":"2021-04-02T04:48:32","slug":"mikrotik-dualwan","status":"publish","type":"post","link":"https:\/\/wiki.m-network.ru\/?p=829","title":{"rendered":"Mikrotik DualWAN"},"content":{"rendered":"\n<p>\u0414\u0430\u0435\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430\u043c \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 &#171;ISP1&#187; \u0438 &#171;ISP2&#187; \u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c\u0443 \u043a\u0430\u043d\u0430\u043b\u0443 &#171;distance&#187; \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 &#171;1&#187;, \u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u043c\u0443 &#171;2&#187;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/ip route add comment=ISP1 distance=1 gateway=\"gateway\"\n\/ip route add comment=ISP2 distance=2 gateway=\"gateway\"<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">#Checking address availability 8.8.8.8 and provider switching\n \/tool netwatch add comment=ChannelChange down-script=\"\/ip route set [find comment=\\\"ISP1\\\"] distance=10\" host=8.8.8.8 interval=10s up-script=\"\/ip route set [find comment=\\\"ISP1\\\"] distance=1\\r\"\n\n#To correctly check the availability of a node, you need a route to 8.8.8.8 via ISP1\n \/ip route add distance=1 dst-address=8.8.8.8\/32 gateway=\"address_gateway_ISP1\"\n\n#If a USB modem is used for the backup channel, then you need to add a command.\n \/system routerboard usb power-reset\n\n#If VoIP is used, you need to add a command.\n \/ip firewall connection remove [find]<\/pre>\n\n\n\n<p><br>Netwatch \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c 8.8.8.8 \u043f\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c\u0443 \u043a\u0430\u043d\u0430\u043b\u0443, \u0435\u0441\u043b\u0438 \u0443\u0437\u0435\u043b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 &#171;distance&#187; \u0443 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439 \u0442\u0430\u043a \u043a\u0430\u043a \u0443 \u043d\u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043d\u0438\u0436\u0435.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u0430\u0435\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430\u043c \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 &#171;ISP1&#187; \u0438 &#171;ISP2&#187; \u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c\u0443 \u043a\u0430\u043d\u0430\u043b\u0443 &#171;distance&#187; \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 &#171;1&#187;, \u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u043c\u0443 &#171;2&#187; \/ip route add comment=ISP1 distance=1 gateway=&#187;gateway&#187; \/ip route add comment=ISP2 distance=2 gateway=&#187;gateway&#187; #Checking address availability 8.8.8.8 and provider switching \/tool netwatch add comment=ChannelChange down-script=&#187;\/ip route set [find comment=\\&#187;ISP1\\&#187;] distance=10&#8243; host=8.8.8.8 interval=10s up-script=&#187;\/ip route set [find ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/wiki.m-network.ru\/?p=829\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[34],"tags":[67,78],"_links":{"self":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts\/829"}],"collection":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=829"}],"version-history":[{"count":4,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts\/829\/revisions"}],"predecessor-version":[{"id":853,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=\/wp\/v2\/posts\/829\/revisions\/853"}],"wp:attachment":[{"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.m-network.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}