Before configuring unicast route load balancing, please attention to the maximum number of routes of the unicast routing table. The route load balancing increases the number of routes.
Configuration Procedure:
Modification of IGP cost impacts on BGP route selection.
Route Type |
Command Format |
Views |
Maximum number |
---|---|---|---|
Static route |
NA |
- |
64 |
OSPF |
maximum load-balancing number |
OSPF view |
64 |
OSPFv3 |
maximum load-balancing number |
OSPFv3 view |
64 |
IS-IS |
maximum load-balancing number |
IS-IS view IS-IS topology view IS-IS IPv6 topology view |
64 |
IS-IS IPv6 |
ipv6 maximum load-balancing number NOTE:
This command is valid only for an IPv6 base topology, and invalid for IPv6 routes in multi-topology. The maximum load-balancing number command in the IS-IS IPv6 topology view is used to configure load balancing among IPv6 routes in multi-topology. |
IS-IS view |
64 |
RIP |
maximum load-balancing number |
RIP view |
64 |
RIPng |
maximum load-balancing number |
RIPng view |
64 |
For different products and different protocols, the maximum number of equal-cost routes is different. The maximum value can be adjusted by purchasing license files.
Solution 1: Static routes or equal-cost IGP routes for BGP route recursion. Configuration Procedure:
If loopback interfaces are used to establish an EBGP peer relationship, the peer ebgp-max-hop command (hop-count >= 2) must be run; otherwise, the peer relationship cannot be established.
By default, the maximum number of equal-cost BGP routes is 1, that is, the load balancing among BGP routes is not enabled by default.
If the maximum load-balancing command is configured, when the routes advertised from the EBGP peer are advertised to IBGP peers, the next hop address of the routes are set as the local IP address by which the IBGP peer is established. If the maximum load-balancing command is not configured, the next hop address of the routes is not changed when the routes are advertised to the IBGP peer, unless the peer next-hop-local command is configured.
Route Type |
Command Format |
Views |
Default value |
---|---|---|---|
BGP |
|
BGP view BGP IPv4 unicast address family view BGP IPv6 unicast address family view BGP-VPN instance IPv4 address family view BGP-VPN instance IPv6 address family view |
1 |
EBGP and IBGP |
|
BGP-VPN instance IPv4 address family view BGP-VPN instance IPv6 address family view |
1 |
For application case of Solution 1, see BGP Route Load Balancing in an RR Scenario.
Solution 2: Modify BGP route attributes according to the rule of BGP route selection. Configuration Procedure:
Solution 3: Divide the destination addresses into multiple groups and deploy multiple links between the BGP peers, one link for each group. Suitable scenarios: there are multiple EBGP peers in the same AS to the same destination. Configuration Procedure:
For application case of Solution 3, see Solution to the Low Equal-Cost Route Specification on the Remote Device Without Interrupting Services.
Run the save command to save the current configuration to the configuration file when a set of configuration is finished and the expected functions have been achieved.