![Cisco Nexus 3548 series Command Reference Manual Download Page 69](http://html.mh-extra.com/html/cisco/nexus-3548-series/nexus-3548-series_command-reference-manual_2609162069.webp)
49
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
bestpath (BGP)
bestpath (BGP)
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
}}
Syntax Description
Command Default
The default settings are as follows:
med missing-as-worst: A value of 0 is assigned to the missing MED
med non-deterministic: Disabled
Command Modes
Router BGP configuration mode
Command History
Usage Guidelines
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.
Examples
This example shows how to change the default best-path selection algorithm to compare the MED on
paths from different autonomous systems:
switch#
configure terminal
switch(config)#
router bgp 64496
switch(config-router)#
bestpath always-compare-med
always-compare-med
Compares the Multi-Exit Discriminator (MED) on paths from a different
autonomous system (AS).
compare-routerid
Configures a 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.
med non-deterministic
Specifies that the best-MED path among paths is not picked from the same
AS.
Release
Modification
5.0(3)A1(1)
This command was introduced.