The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS unicast routing commands that begin with the letter B.
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.
bestpath { always-compare-med | as-path multipath-relax | c ompare-routerid | cost-community ignore | med { confed | missing-as-worst | non-deterministic }}
no bestpath { always-compare-med | as-path multipath-relax | c ompare-routerid | cost-community ignore | med { confed | missing-as-worst | non-deterministic }}
Router BGP configuration
Neighbor configuration
VRF configuration
|
|
---|---|
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 example shows how to change the default bestpath selection algorithm to compare the MED on paths from different AS:
|
|
---|---|