Changing the maximum number of LDP ECMP paths

The number of LDP ECMP paths for transit LSR depends on the number of eligible paths that are available, and the maximum number of LDP ECMP paths that you can configure. By default, the maximum number of LDP ECMP paths is one.

To change the maximum number of LDP ECMP paths, perform the following steps.

  1. In privileged EXEC mode, enter global configuration mode.
    device# configure terminal
  2. Enable MPLS on the device.
    device(config)# router mpls
  3. Access LDP configuration mode.
    device(config-router-mpls)# ldp
  4. Change the maximum number of LDP ECMP paths.
    device(config-router-mpls-ldp)# load-sharing 4
    In this example, the maximum number of path is set to 4. The default value is 1. You can enter an integer from 1 to 16.
  5. Verify the load sharing configuration.
    device# show mpls ldp
    Label Distribution Protocol version 1
    LSR ID: 10.125.125.1, using Loopback 1(deleting it stops LDP)
    Hello interval: Link 5 sec, Targeted 15 sec
    Hold time value sent in Hellos: Link 15 sec, Targeted 45 sec 
    Keepalive interval: 6 sec, Hold time multiple: 6 intervals 
    load-sharing 4
    
    Note

    Note

    The load sharing configuration is displayed only when the configured value is different from the default value.

Example

The following example shows the previous steps to change the maximum number of ECMP paths.

device# configure terminal
device(config)# router mpls
device(config-router-mpls)# ldp
device(config-router-mpls-ldp)# load-sharing 4