打印 Windows 的 IP 路由表
查看 Windows 已知的所有路由(网关、接口、跃点数),排查流量走错网卡或 VPN 隧道的问题。
运行 `route print`(或只看 IPv4 用 `route print -4`)即可显示完整路由表,包括网关、接口和跃点数。
01命令
命令
$ route print02作用说明
Windows 为每个数据包选下一跳时,按最长前缀匹配这张表,再按跃点数(metric)决定。当 VPN 或第二块网卡改变默认路由时,`route print` 能让你看清哪条 0.0.0.0/0 路由获胜、流量从哪个接口出去。输出分为 IPv4、IPv6 和重启后仍保留的永久路由三部分。添加路由(`route add <网段> mask <掩码> <网关>`)一般需要管理员权限,但查看不需要。
03风险
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- ROUTE - Windows CMD依据: SS64 documents 'route print' to display the routing table and route add/delete to modify persistent or transient routes.
最后验证: 2026-09-17 · 分类: 网络