max-paths
Use this command to set the number of equal-cost multi-path (ECMP) routes for eBGP or iBGP. You can install multiple BGP paths to the same destination to balance the load on the forwarding path.
Use the no parameter with this command to disable this feature.
Command Syntax
max-paths (ebgp|ibgp|) <2-64>
no max-paths ebgp (<2-64>|)
no max-paths ibgp (<2-64>|)
Parameters
ebgp
eBGP ECMP session
ibgp
iBGP ECMP session
<2-64>
Number of routes
Default
Available for the IPv4 and IPv6 unicast addresses.
Command Mode
Address Family mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example configures 7 routes for ECMP for iBGP.
#configure terminal
(config)#router bgp 11
(config-router)#address-family ipv4 unicast
(config-router-af)#max-paths ibgp 7
Last modified date: 08/28/2023