Cisco Nexus 7000 Series NX-OS Unicast Routing Command Reference, Release 4.0
B Commands

Table Of Contents

B Commands

bestpath


B Commands


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.

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

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.


Command Default

This command has no default settings.

Command Modes

Router BGP configuration
Neighbor configuration
VRF configuration

Supported User Roles

network-admin
vdc-admin

Command History

Release
Modification

4.0(1)

This command was introduced.


Usage Guidelines

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:

switch(config)# router bgp 100
switch(config-router)# bestpath always-compare-med

Related Commands

Command
Description

feature bgp

Enables BGP globally.