{"id":309,"date":"2019-05-15T12:57:50","date_gmt":"2019-05-15T11:57:50","guid":{"rendered":"http:\/\/www.snoopdos.com\/blog\/?p=309"},"modified":"2019-05-15T13:02:22","modified_gmt":"2019-05-15T12:02:22","slug":"windows-10-default-route-vanishing-again","status":"publish","type":"post","link":"http:\/\/www.snoopdos.com\/blog\/windows-10-default-route-vanishing-again\/","title":{"rendered":"Windows 10 Default Route Vanishing (again)"},"content":{"rendered":"<p>My previous attempt to <a href=\"http:\/\/www.snoopdos.com\/blog\/default-route-keeps-vanishing-on-windows-10\/\">stop the Windows 10 default route vanishing<\/a> turned out to be unreliable; after a few Windows Updates, the default route was gone again.<\/p>\n<p>However, I&#8217;ve finally found a way to make a statically configured default route properly persistent across reboots (something that other operating systems, and older versions of Windows, have no trouble doing at all).<\/p>\n<p>To recap: for various reasons, I assign static IP addresses to most of my PCs instead of using DHCP to allocate them automatically. As part of the configuration I specify a default gateway to the Internet, like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-296\" style=\"color: #141412; font-family: &amp;quot; source sans pro&amp;quot;,helvetica,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; height: auto; letter-spacing: normal; max-width: 100%; orphans: 2; outline-color: #72777c; outline-style: solid; outline-width: 1px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: middle; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 5px 0px 5px 0px;\" src=\"http:\/\/www.snoopdos.com\/blog\/wp-content\/uploads\/2019\/05\/windows10-ipv4.png\" alt=\"windows10-ipv4\" width=\"400\" height=\"455\" srcset=\"http:\/\/www.snoopdos.com\/blog\/wp-content\/uploads\/2019\/05\/windows10-ipv4.png 400w, http:\/\/www.snoopdos.com\/blog\/wp-content\/uploads\/2019\/05\/windows10-ipv4-264x300.png 264w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>Windows 10 appears unable to remember this default gateway across reboots, especially when I have additional IP subnets configured on the same network interface.<\/p>\n<p>This isn&#8217;t a big deal if I&#8217;m sitting in front of the PC, since I can fix it quickly. However, it&#8217;s a show-stopper if I need to access the PC remotely since it is no longer connected to the Internet. When it happens with our main family PC, it&#8217;s even more annoying since the steps to resolve it are not intuitive for my wife and sons.<\/p>\n<p>Today, after yet another such unplanned outage (thank you, Windows Updates), a lightbulb finally went off in my head &#8212; why not use the existing Windows Persistent Route capability to add a persistent default route? I&#8217;ve now tried this approach on several PCs and it seems to work reliably!<\/p>\n<p>So without further ado, if you too are suffering from this problem, here&#8217;s how to fix it.<\/p>\n<ol>\n<li>Open a command prompt with Administrator privileges by right-clicking on the Command Prompt option and selecting <em>Run As Administrator, <\/em>or pressing &lt;<strong>WindowsKey<\/strong>&gt;-&lt;<strong>R<\/strong>&gt;, typing <strong>CMD<\/strong> in the Run box, and pressing &lt;<strong>CTRL<\/strong>&gt;-&lt;<strong>SHIFT<\/strong>&gt;-&lt;<strong>Enter<\/strong>&gt;<\/li>\n<li>Type <strong>ROUTE DELETE 0.0.0.0<\/strong> to delete any existing default route; if you don&#8217;t have one at the moment, this will give an error which is fine.<\/li>\n<li>Type <strong>ROUTE ADD -p 0.0.0.0 MASK 0.0.0.0 10.1.1.254<\/strong> to add a new default route using the IP router gateway 10.1.1.254; replace this with your own gateway IP.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-297\" src=\"http:\/\/www.snoopdos.com\/blog\/wp-content\/uploads\/2019\/05\/new-default-route.png\" alt=\"new-default-route\" width=\"569\" height=\"234\" srcset=\"http:\/\/www.snoopdos.com\/blog\/wp-content\/uploads\/2019\/05\/new-default-route.png 569w, http:\/\/www.snoopdos.com\/blog\/wp-content\/uploads\/2019\/05\/new-default-route-300x123.png 300w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/p>\n<p>That&#8217;s it! Your default route should now be added back automatically whenever you reboot. If you need to change to a different default route, just repeat the steps above.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My previous attempt to stop the Windows 10 default route vanishing turned out to be unreliable; after a few Windows Updates, the default route was gone again. However, I&#8217;ve finally found a way to make a statically configured default route properly persistent across reboots (something that other operating systems, and older versions of Windows, have &hellip; <a href=\"http:\/\/www.snoopdos.com\/blog\/windows-10-default-route-vanishing-again\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Windows 10 Default Route Vanishing (again)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-309","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/posts\/309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/comments?post=309"}],"version-history":[{"count":1,"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/posts\/309\/revisions"}],"predecessor-version":[{"id":310,"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/posts\/309\/revisions\/310"}],"wp:attachment":[{"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/media?parent=309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/categories?post=309"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.snoopdos.com\/blog\/wp-json\/wp\/v2\/tags?post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}