基本管理命令:
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