bestroute med-none-as-maximum (BGP-IPv4 multicast address family view)

Function

The bestroute med-none-as-maximum command configures MBGP to assign the maximum Multi Exit Discriminator (MED), 4294967295, to a route without an MED in route selection.

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

By default, MBGP assigns 0 to a route without an MED.

Format

bestroute med-none-as-maximum

undo bestroute med-none-as-maximum

Parameters

None

Views

BGP-IPv4 multicast address family 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 in MBGP route selection and is used only when no MED is in the route attributes.

Configuration Impact

During MBGP route selection, if the bestroute med-none-as-maximum command is run, a route without any MED is assigned the maximum MED of 4294967295.

Precautions

If no MED is in the route attributes and the bestroute med-none-as-maximum command is not run, the system probably cannot select an optimal route.

Example

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