Networking Forums

Networking Forums > Computer Networking > Windows Networking > static route for PPTP connection

Reply
Thread Tools Display Modes

static route for PPTP connection

 
 
mylesv@gmail.com
Guest
Posts: n/a

 
      11-08-2007, 03:42 PM
I would like a static route to be added whenever I establish a certain
PPTP connection. I'm currently doing this by hand, and I'd like to
automate it.

Here's the scenario. Internal corporate network is 192.168.0.0/16
Connect to VPN. Route automatically added to 192.168.0.0/16 via PPTP
adapter. There's an additional internal corporate network
10.0.0.0/16. I currently have to add the route by hand for this.
netsh doesn't seem to know about PPTP adapters, so I can't use its
"add persistentroute" command.

Note that I do not wish to make the PPTP adapter my default gateway,
either.

Thanks!

 
Reply With Quote
 
 
 
 
Bill Grant
Guest
Posts: n/a

 
      11-08-2007, 11:42 PM
There isn't really any way to do that on a client OS before you connect,
because the interface doesn't exist until the connection is made. With a
server you can use RRAS and set up a demand-dial interface for the
connection. You can then link the route to the dd interface, and the OS will
add the route to the routing table when the connection is made.

The other way to do it would be to use CMAK on the server and have the
client download its config from the server.

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
>I would like a static route to be added whenever I establish a certain
> PPTP connection. I'm currently doing this by hand, and I'd like to
> automate it.
>
> Here's the scenario. Internal corporate network is 192.168.0.0/16
> Connect to VPN. Route automatically added to 192.168.0.0/16 via PPTP
> adapter. There's an additional internal corporate network
> 10.0.0.0/16. I currently have to add the route by hand for this.
> netsh doesn't seem to know about PPTP adapters, so I can't use its
> "add persistentroute" command.
>
> Note that I do not wish to make the PPTP adapter my default gateway,
> either.
>
> Thanks!
>


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
static route Tom1 Windows Networking 4 09-05-2008 04:21 PM
Route some packets based on port or source ip, over pptp link morleyc@gmail.com Linux Networking 2 06-26-2007 09:22 PM
Adding Static route moncho Windows Networking 5 04-13-2006 07:13 AM
procedures for static route? Andre Windows Networking 2 10-08-2004 11:11 PM
route and static route to a gateway Sting Linux Networking 2 02-21-2004 03:35 AM



1 2 3 4 5 6 7 8 9 10 11