static route does not save after reboot

  • Thread starter Thread starter Darin
  • Start date Start date
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
 
"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
 
Back
Top