Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


load-balance (ecmp)


Hierarchy Level


Specify the type of load balancing of an equal-cost multipath (ECMP) in the forwarding table.

By default, Junos OS uses a hashing method based only on the destination address to elect a forwarding next hop when multiple equal-cost paths are available. As a result, when multiple routers or switches share the same set of forwarding next hops for a given destination, they can elect the same forwarding next hop.



Prefix consistent load-balancing. Consistent load balancing ensures that if an ECMP member (that is, a path) fails, only flows flowing through the failed member are redistributed to other active ECMP members.


Destination based IP load-balancing. In equal-cost multipath, (ECMP) per-subscriber aware environments such as content service providers who service residential customers, traffic in both directions within the service provider network should always pass through the content servers that maintain the subscriber state information for a given subscriber. This is accomplished by calculating the load balancing hash based solely on source address for traffic coming into the service provider network and calculating the load balancing hash based solely on the destination address for traffic leaving the service provider network.


Load-balance on a per-packet basis.


Load-balance using packet random spray.


Source based IP load-balancing

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 14.2.