基本管理命令:
route print route命令基本格式: ROUTE [-f] [-p] [-4|-6] command [destination] [MASK netmask] [gateway] [METRIC metric] [IF interface] 子命令: command One of these: PRINT Prints a route ADD Adds a route DELETE Deletes a route CHANGE Modifies an existing route
此指令在windows 10 命令行中有详细的命令使用说明,大家可以自行阅读;
这里我列举几个关键路由操作:
添加: C:\Users\Administrator>route ADD 202.112.137.223 MASK 255.255.255.255 10.134.150.5 METRIC 3 IF 18 OK! C:\Users\Administrator>route ADD 202.112.137.223 MASK 255.255.255.255 10.134.150.9 METRIC 3 IF 18 OK!
删除: C:\Users\Administrator>route delete 202.112.137.223/32 OK!
其他命令自己阅读文档吧;注:此文中的关键路由操作,将会在通过 ssh-tunnels socks5 proxychains openvpn 实现非侵入式内网穿透 一文中使用
保持更新转载请注明出处,如果对您有帮助,还希望您能点击右下角推荐选项,非常感谢!
附:window 帮助上给出的使用例子:
Examples: > route PRINT > route PRINT -4 > route PRINT -6 > route PRINT 157* .... Only prints those matching 157* > route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2 destination^ ^mask ^gateway metric^ ^ Interface^ If IF is not given, it tries to find the best interface for a given gateway. > route ADD 3ffe::/32 3ffe::1 > route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2 CHANGE is used to modify gateway and/or metric only. > route DELETE 157.0.0.0 > route DELETE 3ffe::/32
2019年6月8日23:02:36