这台电脑配置的是192.168.6.1。但我尝试将其更改为192.168.6.51。虽然路由打印显示默认网关是192.168.6.51,但数据包的下一跳是192.168.6.1。
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.6.51 192.168.6.50 261
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
192.168.6.0 255.255.255.0 On-link 192.168.6.50 261
192.168.6.50 255.255.255.255 On-link 192.168.6.50 261
192.168.6.255 255.255.255.255 On-link 192.168.6.50 261
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 192.168.6.50 261
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 192.168.6.50 261
===========================================================================
Persistent Routes:
None
但是当尝试 tracert 8.8.8.8 时,下一跳仍然是 192.168.6.1。
Tracing route to 8.8.8.8 over a maximum of 30 hops
1 <1 ms <1 ms <1 ms 192.168.6.1
2 1 ms 4 ms <1 ms ^C
答案1
尝试重置 winsock 目录。这应该会重置适配器和所有缓存。
netsh winsock reset
此后,您需要重新启动机器。