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

Function

The maximum load-balancing import-rib command configures 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 the imported route, the maximum number of routes that can be imported 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

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

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

Views

BGP-EVPN 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 routes for route import. You can configure the number of equal-cost routes for load balancing to implement multi-path load balancing.

Prerequisites

Run the import-rib { vpnv4 | vpnv6 } mpls command to enable the device to import BGP VPNv6 or VPNv4 routes to the EVPN routing table.

Example

# Allow two equal-cost routes to reach the specified destination when the optimal route is a route imported from each other
<HUAWEI> system-view
[*HUAWEI] bgp 100
[*HUAWEI-bgp] l2vpn-family evpn
[*HUAWEI-bgp-af-evpn] import-rib vpnv4 mpls
[*HUAWEI-bgp-af-evpn] maximum load-balancing import-rib 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >