系统相关
首页 > 系统相关> > windows 命令行调整跃点数

windows 命令行调整跃点数

作者:互联网

 先用 route print -4 命令找到接口号:

接口列表
10...00 ff 51 c4 53 b4 ......TAP-Windows Adapter V9
18...18 c0 4d 29 5f 2c ......Realtek Gaming GbE Family Controller
6...5c de 34 16 e9 67 ......Microsoft Wi-Fi Direct Virtual Adapter
8...5c de 34 16 e9 60 ......Microsoft Wi-Fi Direct Virtual Adapter #2
17...00 50 56 c0 00 01 ......VMware Virtual Ethernet Adapter for VMnet1
15...00 50 56 c0 00 08 ......VMware Virtual Ethernet Adapter for VMnet8
19...5c de 34 16 e9 65 ......802.11ac Wireless LAN Card
21...04 7f 0e 1c 7b ff ......Bluetooth Device (Personal Area Network)
1...........................Software Loopback Interface 1

 

有线“Realtek Gaming GbE Family Controller”是18. 无线“802.11ac Wireless LAN Card”是19.

示例命令行:route change 0.0.0.0 mask 0.0.0.0 192.168.10.2 metric 10 if 19

192.168.10.2是网关,10是跃点数,19是route print -4中的接口

 

需要同时调整2张网卡的跃点数,1个加大,1个调小。

命令如下:

route change 0.0.0.0 mask 0.0.0.0 192.168.10.2 metric 10 if 19

route change 0.0.0.0 mask 0.0.0.0 128.0.100.198 metric 100 if 18

pause

 

 

使用route change或route add命令修改的活动路由可能在电脑重启后被复原,如果需要永久修改,可在命令中增加“-p”,例如:"route change -p 0.0.0.0 mask 0.0.0.0 192.168.8.1 metric 20 if 9"

 

标签:...,00,windows,0.0,route,命令行,点数,......,change
来源: https://www.cnblogs.com/runliuv/p/16635299.html