OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Commands : max-paths eigbp
max-paths eigbp
Use this command to set the number of equal-cost multi-path (ECMP) routes for both eBGP and iBGP. This feature allows you to configure multipath load balancing with both external BGP (eBGP) and internal BGP (iBGP) paths in BGP networks.
Use the no parameter with this command to disable this feature and set the BGP path selection to the default single best path.
Command Syntax
max-paths eibgp <2-64>
no max-paths eibgp (<2-64>|)
Parameters
<2-64>
Number of routes
Default
Not applicable
Command Mode
IPv4 and IPv6 unicast address-family mode
Applicability
This command was introduced in OcNOS version 5.0.
Exception with Administrative Distance
Administrative distance (AD) is the feature that routers use to select the best path when there are two or more different routes to the same destination from two different routing protocols.
In OcNOS, AD is per route. With max-paths eibgp, BGP programs the AD(200)/AD20 for eiBGP routes. If there is a route from IGP with a lower AD, it will be preferred and get installed in the FIB.
A BGP route cannot have a different AD for each path. Multipath candidates of eibgp max-paths can be programmed either with AD20 or AD200.
Currently AD20/AD200 will be programmed for all eiBGP routes as per best path selected by BGP. For example, if the best path is learned via iBGP peering, then AD200 is programmed for all the installed multipaths (including paths from eBGP peering) or If the best path is learned via eBGP peering, then AD20 is programmed for all the installed multipaths (including paths from iBGP peering).
Example
This example configures the number of parallel iBGP and eBGP routes that can be installed into a routing table.
(config)#router bgp 100
(config-router)#neighbor 11.0.0.2 remote-as 100
(config-router)#neighbor 12.0.0.1 remote-as 200
(config-router)#neighbor 1101::2 remote-as 200
(config-router)#neighbor 1201::1 remote-as 100
(config-router)#address-family ipv4 unicast
(config-router-af)#max-paths eibgp 2
(config-router-af)#network 11.0.0.2 activate
(config-router-af)#network 12.0.0.1 activate
(config-router-af)#exit-address-family
(config-router)#address-family ipv6 unicast
(config-router-af)#max-paths eibgp 3
(config-router-af)#network 1101::2 activate
(config-router-af)#network 1201::1 activate
(config-router-af)#exit-address-family
 
Last modified date: 10/16/2023