rem start of the file
@echo off
set xx= xxx.xxx.xxx.xxx
set default=默认另一网段网关
route -f
route add -p 0.0.0.0 mask 0.0.0.0 %default% Metric 20
route add -p 网段1(ip地址)mask 255.255.240.0 %xx% Metric 10
route add -p 网段2(ip地址)mask 255.255.240.0 %xx% Metric 10
route add -p  网段3(ip地址)mask 255.255.248.0 %xx% Metric 10
route add -p  网段4(ip地址)mask 255.255.192.0 %xx% Metric 10
rem end of the file