| 用途 | 查看路由表与接口列表 |
|---|---|
| 语法 | route print;route print -4;Get-NetRoute |
| 关注 | 0.0.0.0/0 默认路由、On-link 直连网段、Metric 优先级 |
常用示例
常用示例
route print -4
route print 10.*
powershell -c "Get-NetRoute -AddressFamily IPv4 | Sort-Object RouteMetric | Format-Table"多条默认路由并存时按 Metric 小者优先;VPN 分流常通过调 Metric 实现。