快捷设置网络路由,使得能同时连上互联网和VPN的半自动工具
自己做了个半自动的小工具。
Tool set to setup your network routes so that you can be on
Internet at the same time when you are on VPN
Download: http://www.box.net/shared/jjlf4i3kxs
设置步骤:
1)连上所有网络
2)进入DOS提示符,或者说进入cmd.exe
3)执行setup.cmd
4)察看执行结果,根据IP地址等信息确认哪个是连接到互联网的,哪个是连接到VPN的
5)创建一个命令文件,比如名为lan+vpn.cmd
6)在其中输入:cscript setroute.vbs 互联网接口的编号 VPN接口的编号
比如:cscript setroute.vbs 00000011 00458755
然后保存。
7)编辑setroute.cmd以适合你自己的需要
8)如果你除了以太网卡还有CDMA上网卡,可以照类似的方式再建立一个cdma+vpn.cmd
使用方法:
在DOS提示符下执行lan+vpn.cmd或cdma+vpn.cmd就可以了
Setup guide:
1) Get connected to all the network
2) Get into DOS Prompt, or a.k.a. cmd.exe
3) Execute setup.cmd
4) In the output of setup.cmd, find out which adapter is for
internet and which is for VPN, by looking into the IP
addresses and/or gateway information
5) Create a new command file, such as lan+vpn.cmd
6) Input:
cscript setroute.vbs code_of_adapter_for_internet code_of_adapter_for_vpn
for example: cscript setroute.vbs 00000011 00458755
Then save the file.
7) Edit setroute.cmd to meet your routing requirements
8) If you have other network environment, such as CDMA
adapter, you can do the same and create a file like
cdma+vpn.cmd
Usage:
Just execute the command file (lan+vpn.cmd or cdma+vpn.cmd) in DOS Prompt.
没有评论:
发表评论