compare-different-as-med (BGP-IPv4 multicast address family view)

Function

The compare-different-as-med command enables MBGP to compare the MEDs in the routes of peers in different ASs.

The undo compare-different-as-med command restores the default configuration.

By default, MBGP does not compare the MEDs in the routes of peers in different ASs.

Format

compare-different-as-med

undo compare-different-as-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

The command is used to control the MEDs to change the policy of MBGP route selection. If the compare-different-as-med command is run, MBGP will compare the MEDs of the routes from different ASs. If there are multiple reachable paths to the same destination, MBGP prefers the route with the smallest MED.

Example

# Enable MBGP to compare the MEDs in the routes of peers in different ASs.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] compare-different-as-med
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >