{"id":7751,"date":"2021-08-10T23:06:35","date_gmt":"2021-08-10T21:06:35","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=7751"},"modified":"2021-08-13T10:03:02","modified_gmt":"2021-08-13T08:03:02","slug":"windows-add-a-static-persistent-route","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-add-a-static-persistent-route\/","title":{"rendered":"Windows: Add a static\/persistent route"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_7751 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_7751')){$('.twoclick_social_bookmarks_post_7751').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20Add%20a%20static%2Fpersistent%20route\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Ato%20add%20a%20static%20route%20to%20a%20Windows%20machine%20use%20the%20route%20command.%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/windows-add-a-static-persistent-route\\\/\",\"post_id\":7751,\"post_title_referrer_track\":\"Windows%3A+Add+a+static%2Fpersistent+route\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>to add a static route to a Windows machine use the <strong>route <\/strong>command.<br \/>\n<!--more--><br \/>\nLet us assume you have network 172.31.10.0\/24 which you can reach over the gateway 10.10.10.200. Your IP is 10.10.10.20 (in same subnet as the gateway).<\/p>\n<p>Use<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nD:\\&gt; route add  &lt;destination&gt; MASK &lt;mask&gt; &lt;gateway&gt;\r\n<\/pre>\n<p>To add the persistent route use<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nD:\\&gt; route -p add  172.31.10.0 MASK 255.255.255.0 10.10.10.200\r\n<\/pre>\n<p>Optionally you can also specify the interface and the metric (priority).<\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, to add a static route to a Windows machine use the route command.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[146,325,324,181,20],"class_list":["post-7751","post","type-post","status-publish","format-standard","hentry","category-windowsknowhow","tag-add","tag-persistent","tag-route","tag-static","tag-windows-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=7751"}],"version-history":[{"count":5,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7751\/revisions"}],"predecessor-version":[{"id":7756,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7751\/revisions\/7756"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=7751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=7751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=7751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}