bgp bestpath med missing-as-worst

Syntax

bgp bestpath med missing-as-worst

no bgp bestpath med missing-as-worst

Description

Configures a BGP routing process to assign a value of infinity (max possible) to routes that are missing the Multi Exit Discriminator (MED) attribute (making the path without a MED value the least desirable path).

Any changes in BGP configuration are applied by restarting the current BGP sessions in the VRFs.

The no form of this command restores default behavior. The default behavior assigns a value of 0 to the missing MED.

Command context

config-router

Authority

Administrators

Examples

switch(config-router)# bgp bestpath med missing-as-worst
All current BGP sessions in VRF default will be restarted.
Do you want to continue (y/n)?
switch(config-router)# no bgp bestpath med missing-as-worst
All current BGP sessions in VRF default will be restarted.
Do you want to continue (y/n)?