Consider the following output:
router#show ip bgp vpnv4 rd 300:1 184.108.40.206/26 BGP routing table entry for 300:1:220.127.116.11/26, version 538213 Paths: (2 available, best #2, no table) Advertised to update-groups: 1 Refresh Epoch 1 Local, (Received from a RR-client) 18.104.22.168 (metric 30) from 22.214.171.124 (126.96.36.199) 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:188.8.131.52 mpls labels in/out nolabel/24059 rx pathid: 0, tx pathid: 0 Refresh Epoch 1 Local, (Received from a RR-client) 184.108.40.206 (metric 30) from 220.127.116.11 (18.104.22.168) 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:22.214.171.124 mpls labels in/out nolabel/24056 rx pathid: 0, tx pathid: 0x0
I'm redistributing from EIGRP to iBGP here and by putting delay on a specific interface within the LAN, I've changed the metric value for 126.96.36.199 to metric 5222400 The path for 188.8.131.52 is then set as best since it has a smaller metric of metric 107520
How exactly is the metric there calculated? I'm assuming its part of some eigrp to bgp delay formula but I cannot find any specific information to how it relates on Cisco's documentation so far.