maximum load-balancing import-rib(BGP-VPNv4 address family view)

Function

The maximum load-balancing import-rib command sets the maximum number of routes that can be imported for load balancing when the optimal route is an imported route.

The undo maximum load-balancing import-rib command restores the default maximum number of routes that can be imported for load balancing.

By default, when the optimal route is an imported route, the maximum number of imported routes that can be used for load balancing is 1. That is, load balancing is not performed.

Format

maximum load-balancing import-rib number

undo maximum load-balancing import-rib [ number ]

Parameters

Parameter Description Value
number

Specifies the maximum number of imported routes that can be used for load balancing when the optimal route is an imported route.

The value is 1 or 2. The default value is 1.

Views

BGP-VPNv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

If the optimal routes are imported routes, load balancing can be implemented among the imported routes through multi-path selection. This load balancing mode requires equal-cost imported routes. You can configure the number of equal-cost imported routes for load balancing to implement multi-path load balancing.

Prerequisites

The device has been enabled to import EVPN IP prefix routes to the BGP VPNv4 routing table using the import-rib evpn srv6 ip-prefix command.

Example

# Allow two equal-cost imported routes to the specified destination address to be used for load balancing.
<HUAWEI> system-view
[*HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family vpnv4
[*HUAWEI-bgp-af-vpnv4] import-rib evpn srv6 ip-prefix
[*HUAWEI-bgp-af-vpnv4] maximum load-balancing import-rib 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >