Sets the maximum number of BGP4 and BGP4+ shared paths.
Disabled.
BGP address-family IPv4 unicast configuration mode
BGP address-family IPv6 unicast configuration mode
BGP address-family IPv4 unicast VRF configuration mode
BGP address-family IPv6 unicast VRF configuration mode
Use this command to change the maximum number of BGP4 shared paths, either by setting a value or using the maximum IP ECMP path value supported (128) without enabling BGP level ECMP.
If the configured num value is less than the possible number of ECMP paths available, BGP routes may not take the same number of ECMP paths. The set of ECMP paths may not be the same for different prefixes.
The no form of the command restores the default.
This example sets the maximum number of BGP4 shared paths to 128.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv4 unicast device(config-bgp-ipv4u)# maximum-paths 128
This example sets the maximum number of BGP4+ shared paths to 128 without enabling BGP level ECMP.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv6 unicast device(config-bgp-ipv6u)# maximum-paths use-load-sharing
This example sets the maximum number of BGP shared paths to 2 in a nondefault VRF instance in the IPv6 address family.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv6 unicast vrf red device(config-bgp-ipv6u-vrf)# maximum-paths 2