在桌面上建个.txt文档,将文件类型改成.bat
将以下内容复制到.bat文件内,按照实际外网的网关更改
route delete 0.0.0.0
route add 0.0.0.0 mask 0.0.0.0 192.168.1.1///(外网网关) METRIC 20
route delete 10.8..229.0 ///内网网关
route add 10.0.0.0 mask 255.0.0.0 10.8.229.254///内网网关 METRIC 8
我的.bat文件是:
route delete 0.0.0.0
route add 0.0.0.0 mask 0.0.0.0 192.168.1.1 METRIC 20
route delete 10.154.22.0
route add 10.0.0.0 mask 255.0.0.0 10.155.22.110 METRIC 8