load-balancing (BGP multi-instance VPN instance IPv4 address family view)

Function

The load-balancing eibgp command enables load balancing among EBGP and IBGP routes.

The undo load-balancing eibgp command disables load balancing among EBGP and IBGP routes.

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, load balancing is implemented only among IBGP routes or EBGP routes, and a device compares IGP costs when selecting routes for load balancing.

Format

load-balancing { eibgp | igp-metric-ignore }

undo load-balancing { eibgp | igp-metric-ignore }

Parameters

None

Views

BGP multi-instance VPN instance IPv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

To enable load balancing among EBGP and IBGP routes, run the load-balancing eibgp command.

When both EBGP and IBGP routes are available and load balancing among them is required, run the load-balancing eibgp command. Exercise caution when using the command because the execution of this command will change the conditions of load balancing.

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 load-balancing igp-metric-ignore command. Exercise caution when using the command because the execution of this command will change the conditions of load balancing.

Precautions

The load-balancing eibgp command and the maximum load-balancing { ebgp | ibgp }or maximum load-balancing eibgp command are mutually exclusive.

Example

# Prevent a router from comparing IGP costs when selecting routes for load balancing.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv4-family
[*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both
[*HUAWEI-vpn-instance-vpna-af-ipv4] quit
[*HUAWEI-instance-vpna] quit
[*HUAWEI] bgp 100 instance a
[*HUAWEI-bgp-instance-a] ipv4-family vpn-instance vpna
[*HUAWEI-bgp-instance-a-vpna] load-balancing igp-metric-ignore
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >