load-balancing igp-metric-ignore (BGP view)

Function

The load-balancing igp-metric-ignore command prevents a router from comparing IGP costs when selecting routes for load balancing.

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

By default, a device compares IGP costs when selecting routes for load balancing.

Format

load-balancing igp-metric-ignore

undo load-balancing igp-metric-ignore

Parameters

None

Views

BGP-IPv4 unicast address family view, BGP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

To prevent a router from comparing IGP costs when selecting routes for load balancing, run the load-balancing igp-metric-ignore command.

When routes with different IGP costs are available and load balancing among them is required, run the command. Exercise caution when using the command because the execution of this command will change the conditions of load balancing.

Example

# Prevent a router from comparing IGP costs when selecting routes for load balancing.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] load-balancing igp-metric-ignore
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >