
在Windows 10系統上,我有多個介面。我為每個介面分配了 IPv4 和 IPv6 的路由度量。當我查看路由表時,會使用我的 IPv4 指標。對於 IPv6,我的指標被忽略,並且為傳出連接選擇了錯誤的介面。
PS C:\users\Public> Get-NetRoute -DestinationPrefix '0.0.0.0/0' | Format-Table -AutoSize
ifIndex DestinationPrefix NextHop RouteMetric PolicyStore
------- ----------------- ------- ----------- -----------
6 0.0.0.0/0 10.0.0.1 768 ActiveStore
3 0.0.0.0/0 192.168.8.1 512 ActiveStore
4 0.0.0.0/0 192.168.32.1 0 ActiveStore
PS C:\users\Public> Get-NetRoute -DestinationPrefix '::/0' | Format-Table -AutoSize
ifIndex DestinationPrefix NextHop RouteMetric PolicyStore
------- ----------------- ------- ----------- -----------
6 ::/0 fe80::7acd:8eff:fe45:1352 256 ActiveStore
3 ::/0 fe80::20d:b9ff:fe24:78f4 256 ActiveStore
4 ::/0 fe80::208:a2ff:fe09:9119 256 ActiveStore
我需要做什麼才能讓 Windows 尊重我的 IPv6 路由指標?