bestroute igp-metric-ignore (BGP-IPv4 multicast address family view)

Function

The bestroute igp-metric-ignore command configures MBGP to ignore the IGP metric when selecting the optimal route.

The undo bestroute igp-metric-ignore command restores the default configuration.

By default, MBGP uses the IGP metric as one of route selection rules.

Format

bestroute igp-metric-ignore

undo bestroute igp-metric-ignore

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

On an MBGP network, a device often receives multiple routes with the same prefix but different paths from different peers. To forward traffic to that prefix address, MBGP needs to select an optimal route from these routes. By default, MBGP will compare the IGP metrics of these routes to their MBGP next hops and select a route with the smallest IGP metric.

The bestroute igp-metric-ignore command can be run to configure MBGP to ignore the IGP metrics in route selection based on customers' routing requirements.

Configuration Impact

After the bestroute igp-metric-ignore command is run, MBGP does not compare the IGP metrics of routes to MBGP next hops.

Example

# Configure BGP to ignore the IGP metric when selecting the optimal route.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] bestroute igp-metric-ignore
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >