R211x-HP Flexfabric 11900 Layer 3 - IP Services Configuration Guide
112
Configuring load sharing
If a routing protocol finds multiple equal-cost best routes to the same destination, the device forwards
packets over the equal-cost routes to implement load sharing.
Configuration procedure
Load sharing can be implemented in one of the following ways:
• Per-packet—The device forwards packets over equal-cost routes.
• Per-flow—The device forwards flows over equal-cost routes. Packets of one flow travel along the
same routes. You can configure the device to identify a flow based on the following tuples: source
IP address, destination IP address, source port number, destination port number, and IP protocol
number.
In a complex network, when the five tuples cannot distinguish flows, you can use the algorithm
keyword to specify an algorithm to identify flows for load sharing.
To configure per-flow load sharing:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Configure per-flow
load sharing.
• In standalone mode:
ip load-sharing mode
per-flow [ algorithm
algorithm-number |
[ dest-ip | dest-port |
ip-pro | src-ip |
src-port ] * ] [ slot
slot-number ]
• In IRF mode:
ip load-sharing mode
per-flow [ algorithm
algorithm-number |
[ dest-ip | dest-port |
ip-pro | src-ip |
src-port ] * ] [ chassis
chassis-number slot
slot-number ]
By default, the device
performs per-flow load
sharing based on the
source IP address,
destination IP address,
source port number,
destination port number,
and IP protocol number.
Load sharing configuration example
Network requirements
As shown in Figure 48, Switch A has two equal-cost routes to Switch B. Configure load sharing on Switch
A to forward packets through Switch B to the destination IP address 1.2.3.4/24.










