deterministic-med (BGP-IPv4 multicast address family view)

Function

The deterministic-med command enables the MBGP deterministic-MED function to allow the sequence in which routes are received to be irrelevant to the result of route selection.

The undo deterministic-med command restores the default configuration.

By default, the MBGP deterministic-MED function is disabled.

Format

deterministic-med

undo deterministic-med

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

After the MBGP deterministic-MED function is enabled, when an optimal route is to be selected from routes that are received from different ASs and carry the same prefix, routes are first grouped based on the leftmost AS in the AS_Path attribute. Routes with the same leftmost AS are grouped together, and after comparison, an optimal route is selected for the group. The group optimal route is then compared with optimal routes from other groups to determine the final optimal route. This mode of route selection ensures that the sequence in which routes are received is irrelevant to the result of route selection.

If the MBGP deterministic-MED function is disabled, routes are compared against each other according to the sequence in which they are received. In this manner, the sequence in which routes are received is relevant to the route selection result.

For detailed application of this command, see Configuration Guide > IP Routing > BGP Configuration > BGP Route Selection Rules > Route Attributes > MED.

Example

# Enable the MBGP deterministic-MED function in the BGP-IPv4 multicast address family view.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] deterministic-med
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >