Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows, persistent default gateway

Posted on 2012-04-05
1
Medium Priority
?
357 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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: I have always been a big fan of Windows but my liking towards it is slowly being eroded by the variety of other Applications that I encounter, when I browse the Web. Most of the software available is free and maybe Open Source too. …
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
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…

972 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