首页/网络/BGP 与广域网速查/验证选路的命令组合
BGP 选路与策略62 条

验证选路的命令组合

逐层验证:候选路径、装载结果、对外发布、原始输入。按 FIB → RIB → 邻居级方向核查,能快速缩小范围。

BGP 与广域网速查网络更新于 2026-10-12
候选路径show ip bgp <prefix>
装载结果show ip route <prefix>
对外发布show ip bgp neighbors <ip> advertised-routes
原始输入received-routes(需 soft-reconfiguration)

组合命令

组合命令
show ip bgp 10.1.1.0/24
show ip route 10.1.1.0/24
show ip bgp neighbors 10.0.0.2 advertised-routes
show ip bgp neighbors 10.0.0.2 received-routes   # 需 soft-reconfiguration inbound
advertised-routes 反映策略处理后的发布结果,是核对出向策略的直接依据。

易错点

  • 把 advertised-routes 当原始输入:它已经过出向策略与汇总处理
  • received-routes 未开启 soft-reconfiguration:命令报错或输出为空,先补配置再验证

数据来源与参考

  • Cisco: BGP 验证命令集
​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌