bestroute med-none-as-maximum (BGP view)

Function

The bestroute med-none-as-maximum command configures BGP to assign the maximum MED (4294967295) to a route without MED in route selection.

The undo bestroute med-none-as-maximum command restores the default configuration.

By default, BGP assigns 0 to a route without MED.

Format

bestroute med-none-as-maximum

undo bestroute med-none-as-maximum

Parameters

None

Views

BGP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The bestroute med-none-as-maximum command takes effect during BGP route selection and is used only when no MED is carried by BGP routes. If no MED is carried and the bestroute med-none-as-maximum command is not run, the system cannot select the desired route as the optimal route.

Configuration Impact

During BGP route selection, if the bestroute med-none-as-maximum command is run, a route without MED is assigned the maximum MED (4294967295).

Example

# Configure BGP to assign the maximum MED (4294967295) to a route without MED in route selection.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] bestroute med-none-as-maximum
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >