static route does not save after reboot

D

Darin

We have enabled a new VPN tunnel in our organization for
an exchange server off-site.

I add the tunnel via the following command line:

"route add 192.168.1.0 MASK 255.255.255.0 {local router
IP here}"

If I do a:

"route print"

Then I see it in the list. The tunnel works great until
I reboot, and I find that the:

"route print"

command no longer displays the route I've just added in
the lines above. This is horrible. I have admin
priviledges on all of the machines. It does this on all
of the XP professional machines as well as all of the XP
Home edition. Please help.

-D
 
S

Steve Winograd [MVP]

"Darin" said:
We have enabled a new VPN tunnel in our organization for
an exchange server off-site.

I add the tunnel via the following command line:

"route add 192.168.1.0 MASK 255.255.255.0 {local router
IP here}"

If I do a:

"route print"

Then I see it in the list. The tunnel works great until
I reboot, and I find that the:

"route print"

command no longer displays the route I've just added in
the lines above. This is horrible. I have admin
priviledges on all of the machines. It does this on all
of the XP professional machines as well as all of the XP
Home edition. Please help.

-D

Add the "-p" flag, which tells the system to make the route persistent
across boots:

route -p add 192.168.1.0 MASK 255.255.255.0 {local router IP here}

For full details of the command:

route /?
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top