• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 416
  • Last Modified:

Persistent Routes

Hi Experts!

I have noticed that I have still an old address on the routing table of my server as follow:

Persistent Routes:
Network Address     Netmask    Gateway Address    Metric
        0.0.0.0               0.0.0.0                10.0.0.244    Default

I am wondering if I should get rid of this record as this was heritage from the old network.

If yes, is the command below the right one?

>route delete 0.0.0.0 mask 0.0.0.0 gateway 10.0.0.244

Thanks,
Duke001
0
Duke001
Asked:
Duke001
  • 3
  • 3
  • 3
  • +2
4 Solutions
 
Mike RoeCommented:
I would delete it.  That is the command
0
 
GiladnCommented:
if this is the only persistent route you can use
route -f
your command will do the job too.

first try to ping that address, see if it's alive, if it is then you may need it.
notice this route is a default gateway entered which is strange since metric is default so it may be a backup route , check if you do have a default route for all traffic you should see
something like:

0.0.0.0   0.0.0.0  (your default network interface gateway)  1  (metric)

Hope this helps,

G


write it down and delete it.
0
 
giltjrCommented:
Typically default routes are set based on a NIC configuration.

Do you still have a NIC that may have that set as the default router/gateway?

I am also assuming that you do have some other address set as your default.

If this route is set based on somebody issuing the route add command with the "-p" option, then I think you may need to edit the registration or after a re-boot it will come back.
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
asavenerCommented:
To permanently delete the route, you have to use "-p" at the end of the route delete command.  Otherwise, it only deletes the route for the current instance of the OS, and rebooting will cause the route to return.

Execute route delete 0.0.0.0 mask 0.0.0.0 gateway 10.0.0.244 -p after the next time you reboot.
0
 
Duke001Author Commented:
I have been away from the office and just come back to this issue today.

Giladn wrote:
0.0.0.0   0.0.0.0  (your default network interface gateway)  1  (metric)

on my server:
0.0.0.0   0.0.0.0  (my default network interface gateway) 266 (metric)

Is the metric number ok?

Sorry, but as I am a novice I am a little nervous about deleting things without a reasonable amount of understanding.

I do appreciate your patience.

Thanks,
Duke001
0
 
Mike RoeCommented:
you do not have to use the -p when you delete.  The -p is only when you add a route to the ip table to make it persistent

Write it down and then delete it.  If things get messed up you can add it back without any worries.  I do this all the time on servers and workstations
0
 
asavenerCommented:
And don't forget to run it under elevated privileges
0
 
giltjrCommented:
Please post the output from the command:


netstat -rn
0
 
GiladnCommented:
Giving credits ahead for GILTJR for the idea -

try this instead :
netstat -nao | findstr "10.0.0.244 "

see if you get an output line..
0
 
Duke001Author Commented:
After running the command:
>netstat -nao | findstr "10.0.0.244 "
... nothing has been found.
0
 
asavenerCommented:
Do you have a network interface on the 10.0.0 subnet?

Can you provide the output of "ipconfig /all"?
0
 
GiladnCommented:
do:
route print > route.txt
now you have a backup of routing table.
n

now execute:
route -f
it will flush the routing table from presistant routes (the 1 you have)
thats it.

G
0
 
giltjrCommented:
Doesn't route -f flushed ALL routes from the routing table.

At least that is what it did when I just did it on my PC.  All routes were gone.  Had to reboot to get them back.  I do not use DHCP on my PC, I have a static IP address coded.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

  • 3
  • 3
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now