By default, the JUNOS software uses a hashing method based only on the destination address to elect a forwarding next hop when multiple equal-cost paths are available. All Packet Forwarding Engine slots are assigned the same hash value by default.
Beginning with JUNOS Release 9.3, you can enable router-specific load balancing by configuring a unique, load balance hash value for each Packet Forwarding Engine slot.
To configure per-prefix load balancing. include the load-balance statement at the [edit forwarding-options] hierarchy level:
- [edit forwarding-options]
-
load-balance {
-
indexed-next-hop;
-
-
per-flow {
- hash-seed number;
- }
- }
To enable per-flow load balancing, you must include the hash-seed number statement. The range that you can configure is 0 through 65,535. 0 is the default value; if no hash seed is configured, the elected forwarding next hop would be the same as in previous releases.