双网卡访问特定ip网段走指定网卡(Windows)

管理员运行cmd

查看路由表信息

1
route print -4

找到需要配置的双网卡

删除默认路由

1
route delete 0.0.0.0

可访问外网的网卡当前的网关IP

1
route add 0.0.0.0 mask 0.0.0.0 [可访问外网的网卡当前的网关IP] -p

可访问内网的网卡当前的网关IP

1
route add 192.168.1.0 mask 255.255.255.0 [可访问内网的网卡当前的网关IP] -p