I am not sure, but i use this batch file to create the manual routes and gateways.
i use this after connecting to a PPTP tunnel.
-----------
@echo off
setlocal
set ip=
set foundPPP=
for /f "delims=" %%a in ('ipconfig /all') do call :PROCESS "%%a"
if "%ip%"=="" echo Can't find PPTP IP address.&goto :EOF
route add 10.21.1.0 mask 255.255.255.0 %ip%
route add 10.22.1.0 mask 255.255.255.0 %ip%
route add 10.60.1.0 mask 255.255.255.0 %ip%
route add 0.0.0.0 mask 0.0.0.0 %ip% metric 30
goto :EOF
:PROCESS
set Line=%~1
if "%Line%"=="" goto :EOF
if "%Line:~0,3%"=="PPP" set foundPPP=Y&goto :EOF
if "%foundPPP%"=="" goto :EOF
for /f "tokens=2 delims=:" %%a in ('echo " %Line% " ^| findstr /c:"IP Address"') do if not "%%a"=="" call :SETIP %%a
goto :EOF
:SETIP
set ip=%1
-------------------
This is a batch file, run this after the VPN conenction
or
just type this at command prompt
route add 10.X.X.0 mask 255.255.255.0 10.A.A.A
route add 0.0.0.0 mask 0.0.0.0 10.A.A.A metric 30
Where 10.X.X.0 is your office network address
10.A.A.A is the ip address given to you after connecting to the VPN
regards
Naren
Main Topics
Browse All Topics





by: stressedout2004Posted on 2006-05-15 at 15:10:19ID: 16686246
If you are using the Cisco VPN client, the answer to your question is *No*. The change has to be done on the VPN server.