EIGRP 到 iBGP 的度量计算

网络工程 思科 bgp eigrp mpls-vpn 再分配
2021-07-24 23:58:04

考虑以下输出:

router#show ip bgp vpnv4 rd 300:1  5.5.5.5/26
BGP routing table entry for 300:1:5.5.5.5/26, version 538213
Paths: (2 available, best #2, no table)
  Advertised to update-groups:
     1
  Refresh Epoch 1
  Local, (Received from a RR-client)
    8.20.2.1 (metric 30) from 8.20.2.1 (8.20.2.1)
      Origin incomplete, metric 5222400, localpref 100, valid, internal
      Extended Community: SoO:80:13 RT:300:1
        Cost:pre-bestpath:129:5222400 (default-2142261247) 0x8800:0:0
        0x8801:80:258560 0x8802:65281:25600 0x8803:1:1500 0x8804:0:60293292
        0x8805:3:0
      Connector Attribute: count=1
       type 1 len 12 value 300:1:8.20.2.1
      mpls labels in/out nolabel/24059
      rx pathid: 0, tx pathid: 0
  Refresh Epoch 1
  Local, (Received from a RR-client)
    8.20.2.2 (metric 30) from 8.20.2.2 (8.20.2.2)
      Origin incomplete, metric 107520, localpref 100, valid, internal, best
      Extended Community: SoO:80:13 RT:300:1 Cost:pre-bestpath:129:107520
        0x8800:0:0 0x8801:80:2816 0x8802:65281:25600 0x8803:1:1500
        0x8804:0:60293292 0x8805:3:0
      Connector Attribute: count=1
       type 1 len 12 value 300:1:8.20.2.2
      mpls labels in/out nolabel/24056
      rx pathid: 0, tx pathid: 0x0

我在这里从 EIGRP 重新分配到 iBGP,并通过在 LAN 内的特定接口上设置延迟,我已将 3.20.2.1 的度量值更改为度量 5222400 然后将8.20.2.2的路径设置为最佳,因为它有公制 107520 的较小公制

那里的指标究竟是如何计算的?我假设它是一些 eigrp 到 bgp 延迟公式的一部分,但到目前为止我找不到任何关于它如何与 Cisco 文档相关的具体信息。

谢谢!

1个回答

由于 Cisco 控制 EIGRP 规范,因此当 EIGRP 被通告/重新分配到 MPLS VPN 时,它们会自动向 BGP 提供附加信息。

此摘自 Cisco对 EIGRPMPLS VPN 支持页面提供了以下详细信息(重点是我的):

VPN 客户端站点之间通过服务提供商骨干网的 EIGRP 连接

在图 1 中,站点 1 中的 EIGRP 路由作为 iBGP 路由通过 BGP 核心网络承载。“站点 1”和“站点 2”中的 EIGRP 路由转换为 iBGP 路由,并将 EIGRP 扩展社区属性附加到 iBGP 路由。(这些属性的描述见表 1。)当 EIGRP 路由作为 iBGP 路由重新分配到 BGP 时,EIGRP 扩展社区属性被附加到 EIGRP 路由,并且 VPN 路由信息通过多协议 BGP 在 PE 路由器之间重新分配。

源自“站点 1”的路由传输到连接到 VPN 的“站点 2”中的 CE 路由器的 PE 路由器,然后使用 EIGRP 扩展社区属性转换回 EIGRP 路由。EIGRP 路由在“站点 1”和“站点 2”中的处理方式相同。如果路由在“站点 1”中为内部路由,则在“站点 2”中为内部路由,如果在“站点 1”中为外部路由,则在“站点 2”中为外部路由。保留所有 EIGRP 指标,并且 EIGRP 指标信息以及自治系统、标签和外部数据通过 BGP 核心网络跨 VPN 传输。