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 Border Gateway Protocol (BGP) commands that begin with B.
To change the default best-path selection algorithm, use the bestpath command. To return the Border Gateway Protocol (BGP) routing process to the default operation, use the no form of this command.
bestpath {always-compare-med | compare-routerid | {med {missing-as-worst | non-deterministic}}
no bestpath {always-compare-med | compare-routerid | {med {missing-as-worst | non-deterministic}}
The default settings are as follows:
med missing-as-worst: A value of 0 is assigned to the missing MED
med non-deterministic: Disabled
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Before you use this command, ensure that BGP is enabled on the switch by using the feature bgp command.
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 LAN Enterprise Services license.
This example shows how to change the default best-path selection algorithm to compare the MED on paths from different autonomous systems:
switch(config)# router bgp 64496
switch(config-router)# bestpath always-compare-med
switch(config-router)#
|
|
---|---|
feature bgp |
Enables BGP globally. |
show ip bgp |
Displays information about BGP routes. |