set protocols bgp bestpath med missing-as-worst


The set protocols bgp bestpath med missing-as-worst command configures a BGP routing process to assign a value of infinity (max possible) to routes that are missing the Multi Exit Discriminator (MED) attribute. The path without a MED value is the least desirable path. Any changes in BGP configuration are applied by restarting the current BGP sessions in the VRFs.

The delete protocols bgp bestpath med missing-as-worst command restores default behavior. The default behavior assigns a value of 0 to the missing MED.


Command Syntax

set protocols bgp [vrf <vrf-name>] bestpath med missing-as-worst

delete protocols bgp [vrf <vrf-name>] bestpath med missing-as-worst


Parameter

Parameter

Description

vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].


Example
• This example configures a BGP routing process to assign a value of infinity (max possible) to routes that are missing the Multi Exit Discriminator (MED) attribute. 

admin@XorPlus# set protocols bgp bestpath med missing-as-worst
admin@XorPlus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.