This chapter describes the Cisco NX-OS unicast routing commands that begin with the letter B.
bestpath
To change the default bestpath selection algorithm, use the bestpath router bgp configuration mode command. To return the BGP routing process to the default operation, use the no form of this command.
no bestpath {always-compare-med | compare-routerid | {med {missing-as-worst |
non-deterministic}}
Syntax Description
always-compare-med
Compares the Multi-Exit Discriminator (MED) on paths from different AS.
compare-routerid
Configures a Border Gateway Protocol (BGP) routing process to compare identical routes received from different external peers during the best path selection process and to select the route with the lowest router ID as the best path.
med missing-as-worst
Assigns the value of infinity to received routes that do not carry the MED attribute, making these routes the least desirable. Default: A value of 0 is assigned to the missing MED.
med non-deterministic
Specifies that the best-MED path among paths is not picked from the same AS. Default: Disabled.
You must ensure that BGP is enabled prior to entering this command for this command to be supported. You can enter the feature bgp global configuration mode command to enable BGP.
To enable the comparison of the MED for paths from neighbors in different autonomous systems, use the bgp always-compare-med command.
This command requires the Enterprise Services license.
Examples
The following example shows how to change the default bestpath selection algorithm to compare the MED on paths from different AS: