![Tracert 显示 WiFi 网关不是 LAN](https://linux22.com/image/1572220/Tracert%20%E6%98%BE%E7%A4%BA%20WiFi%20%E7%BD%91%E5%85%B3%E4%B8%8D%E6%98%AF%20LAN.png)
- 以太网(有线)网关:
10.147.20.1
- WiFi网关:
172.21.164.1
在 Windows 10 v1709 设备上,基于 10 的度量,LAN 似乎应该具有最高优先级。但是 tracert 会通过 WiFi 网关。
这是否表明 LAN 流量优先级存在问题?
路线打印显示以下内容:
Interface List
74...d4 81 d7 34 02 35 ......Dell Giga Ethernet
18...2a 16 ad 87 e8 f8 ......Microsoft Virtual WiFi Miniport Adapter
14...28 16 ad 87 e8 fc ......Bluetooth Device (Personal Area Network)
12...28 16 ad 87 e8 f8 ......Intel(R) Dual Band Wireless-AC 8260
11...d4 81 d7 ae 5d 75 ......Intel(R) Ethernet Connection I219-LM
1...........................Software Loopback Interface 1
44...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
42...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
45...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
43...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 172.21.164.1 172.21.164.68 198
0.0.0.0 0.0.0.0 10.147.20.1 10.147.20.93 10
10.147.20.0 255.255.254.0 On-link 10.147.20.93 266
10.147.20.93 255.255.255.255 On-link 10.147.20.93 266
10.147.21.255 255.255.255.255 On-link 10.147.20.93 266
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
172.21.164.0 255.255.252.0 On-link 172.21.164.68 355
172.21.164.68 255.255.255.255 On-link 172.21.164.68 355
172.21.167.255 255.255.255.255 On-link 172.21.164.68 355
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 172.21.164.68 355
224.0.0.0 240.0.0.0 On-link 10.147.20.93 266
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 172.21.164.68 355
255.255.255.255 255.255.255.255 On-link 10.147.20.93 266
===========================================================================
Persistent Routes:
None
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 306 ::1/128 On-link
74 266 fe80::/64 On-link
74 266 fe80::590c:5c25:e4a6:354f/128
On-link
1 306 ff00::/8 On-link
74 266 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
Tracing route to 10.14.206.162 over a maximum of 30 hops
1 919 ms 970 ms 1061 ms 172.21.164.1
2 2 ms 2 ms 1 ms 10.147.26.5
3 253 ms 227 ms 10 ms 10.100.2.33
4 14 ms 233 ms 13 ms 172.21.231.241
5 5 ms 5 ms 5 ms 10.14.206.162
Trace complete
答案1
我假设您指的是系统上的两个网络适配器(WLAN 和以太网),它们各自配置了不同的默认网关。您想知道为什么路由通过无线适配器和网关而不是无线适配器和网关!?
在 Windows 中,据我所知,最后安装的网络适配器具有最高优先级(即使路由打印输出让您得出不同的结论)——至少在我的 Win7 系统中是这种情况,但也许是我理解错了。我什么时候学会了手动设置网络适配器的优先级:
- 打开网络与共享中心
- 在菜单栏中单击“高级”,然后选择“高级设置”
- 通过上调或下调接口的优先级来更改接口的优先级
你会发现更详细的解释这里(向下滚动到“设置网络适配器优先级”)。