maximum-paths (BGP)

Sets the maximum number of BGP4 and BGP4+ shared paths.

Syntax

maximum-paths max-path-number [ ebgp max-path-number ] [ ibgp max-path-number ] [ use-load-sharing ]
no maximum-paths

Command Default

Disabled.

Parameters

max-path-number
Specifies the maximum number of paths across which the device balances traffic to a given BGP destination. Valid values range is from 1 through 128. The default is 1.
ebgp max-path-number
Specifies the maximum number of paths across which the device balances traffic to a given eBGP destination. Valid values range is from 1 through 128. The default is 1.
ibgp max-path-number
Specifies the maximum number of paths across which the device balances traffic to a given iBGP destination. Valid values range is from 1 through 128. The default is 1.
use-load-sharing
Uses the maximum IP ECMP path value supported (128) without enabling BGP level ECMP.

Modes

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

Usage Guidelines

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.

Examples

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