metric-out
Syntax
metric-out(metric| minimum-igp <offset>| igp <offset>);Hierarchy Level
[edit protocols bgp],[edit protocols bgpgroupgroup-name],[edit protocols bgp groupgroup-nameneighboraddress],
[edit routing-instancesrouting-instance-nameprotocols bgp],[edit routing-instancesrouting-instance-nameprotocols bgpgroupgroup-name],[edit routing-instancesrouting-instance-nameprotocols bgp groupgroup-name
neighboraddress]Description
Metric for all routes sent using the multiple exit discriminator (MED, or
MULTI_EXIT_DISC) path attribute in update messages. This path attribute is used to discriminate among multiple exit points to a neighboring AS. If all other factors are equal, the exit point with the lowest metric is preferred.You can specify a constant metric value by including the
metricoption. For configurations in which a BGP peer sends third-party next hops that require the local system to perform next-hop resolution—IBGP configurations, configurations within confederation peers, or EBGP configurations that include themultihopcommand—you can specify a variable metric by including theminimum-igporigpoption.You can increase or decrease the variable metric calculated from the IGP metric (either from the
igporigp-minimumstatement) by specifying a value for<offset>. The metric is increased by specifying a positive value for<offset>, and decreased by specifying a negative value for<offset>.Options
igp—Set the metric to the most-recent metric value calculated in the IGP to get to the BGP next hop.
metric—Primary metric on all routes sent to peers.
Range: 0 through 4,294,967,295 (232 -1)
Default: No metric is sent.
minimum-igp—Set the metric to the minimum metric value calculated in the IGP to get to the BGP next hop. If a newly calculated metric is greater than the minimum metric value, the metric value remains unchanged. If a newly calculated metric is lower, the metric value is lowered to that value.
offset—(Optional) Increases or decreases the metric by this value.
Range: -231 through 231 -1
Default: No default.Usage Guidelines
See Configure the Multiple Exit Discriminator Metric.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.