Description

In Junos OS, the maximum-ecmp statement under the edit chassis hierarchy allows you to configure the maximum number of Equal-Cost Multi-Path (ECMP) routes that can be installed in the forwarding table.

By default, Junos OS installs up to 16 ECMP paths.

 

Symptoms

  • Limited ECMP Paths: By default, only 16 ECMP paths are installed, which may not be sufficient for certain network environments requiring higher redundancy and load balancing.
  • Suboptimal Load Balancing: Networks with more than 16 equal-cost paths may experience suboptimal load balancing due to the default limit.

Solution

To configure additional ECMP paths (e.g., 32 or 64), you can modify the maximum-ecmp statement in the Junos OS configuration. Follow these steps:

  1. Access the CLI: Log in to the Junos device and enter configuration mode.
  2. Edit Chassis Configuration: Navigate to the chassis configuration hierarchy.
  3. Set Maximum ECMP Paths: Use the maximum-ecmp statement to set the desired number of ECMP paths.
>configure
#set chassis maximum-ecmp 32
#commit

Replace 32 with the desired number of ECMP paths (e.g., 64).

For more detailed information, refer to the Junos CLI Reference

https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/statement/maximum-ecmp-edit-chassis.html

 

Modification History

2025-02-09 : Article Created