Solved

Windows, persistent default gateway

Posted on 2012-04-05
1
346 Views
Last Modified: 2012-04-05
If I persistent the default gateway as follows:

route -p add 0.0.0.0 MASK 0.0.0.0 [gateway ip address] IF [interface]

Open in new window


does that mean I will not lose my default gateway (and not lose connectivity) after I do a

route -f

Open in new window

0
Comment
Question by:Los Angeles1
1 Comment
 
LVL 3

Accepted Solution

by:
wr_mem earned 500 total points
ID: 37811943
No, it does not (had to test it though, see below (although you must believe me or do it yourself as I've edited the outcome, x.x.x.x is my def. gateway)
What it means is that it will be there after a reboot

H:\>route -p add 1.2.3.4 MASK 255.255.255.255 x.x.x.x

H:\>route -f

H:\>route print
===========================================================================
output omitted
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
   output omitted
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
        224.0.0.0        240.0.0.0      X.X.X.X     X.X.X.X      20
  255.255.255.255  255.255.255.255      X.X.X.X     X.X.X.X       1
  255.255.255.255  255.255.255.255      X.X.X.X               2       1
===========================================================================
Persistent Routes:
  None
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My purpose is to describe the basic concepts of virtual memory as implemented in a modern Windows-based operating system. I will also describe the problems inherent in older systems and how virtual memory solves them. The dark ages - before virtu…
This article covers how to install the Microsoft Windows Operating System (OS). What is covered in this article:  > Different Versions and Editions of the Windows OS  > Upgrading versus Fresh Installation of the OS           - Steps to take pr…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question