取消所有路由走vpn?然后搞个批处理文件改路由?
我用这个批处理加192.168.0.0,10.0.0.0 到路由表,你可以参考一下。
==================================================================
@rem - ASB (10 Oct 2005): Get IP Address and Break Into Individual Octets
@ECHO OFF
SETLOCAL
for /f "tokens=3-7 delims=:. " %%v in ('ipconfig ^| find /i "address"') do
call :GetIPs %%v %%w %%x %%y
ENDLOCAL
GOTO :EOBAT
rem SUBROUTINE
rem %1-%4 = 4 Octets of IP address
if not "%1"=="192" GOTO :EOBAT
if not "%2"=="168" GOTO :EOBAT
ECHO %1.%2.%3.%4
route add 192.168.0.0 mask 255.255.0.0 %1.%2.%3.%4
route add 10.0.0.0 mask 255.0.0.0 %1.%2.%3.%4
GOTO :EOBAT