Syntax
path-selection {(cisco-non-deterministic | always-compare-med | external-router-id);med-plus-igp {igp-multipliernumber;med-multipliernumber;}}Hierarchy Level
[edit logical-routerslogical-router-nameprotocols bgp],[edit logical-routerslogical-router-namerouting-instancesrouting-instance-nameprotocols bgp],[edit protocols bgp],[edit routing-instancesrouting-instance-nameprotocols bgp]Release Information
Statement introduced before JUNOS Release 7.4.
med-plus-igpoption introduced in JUNOS Release 8.1.Description
Default
If the
path-selectionstatement is not included in the configuration, only the MEDs of routes that have the same peer ASs are compared.Options
cisco-non-deterministic—Configure routing table path selection so that it is performed using the same nondeterministic behavior as the Cisco IOS software. The active path is always first. All inactive, but eligible, paths follow the active path and are maintained in the order in which they were received, with the most recent path first. Ineligible paths remain at the end of the list.
always-compare-med—Always compare MEDs whether or not the peer ASs of the compared routes are the same.
NOTE: We recommend that you configure the
always-compare-medoption.
external-router-id—Compare the router ID between external BGP paths to determine the active path.
med-plus-igp—Add the IGP cost to the next-hop destination to the MED before comparing MED values for path selection.
igp-multipliernumber—The multiplier value for the IGP cost to a next-hop address.
Range: 1 through 1000
Default: None
med-multipliernumber—The multiplier value for the MED calculation.
Range: 1 through 1000
Default: NoneUsage Guidelines
See Configuring Routing Table Path Selection.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.