Configuring a Load Balancing Mode for IP Packet Forwarding
Context
If flow-based load balancing is used, the hash algorithm is used to calculate a value for selecting a link to forward packets. The value is calculated based on the protocol type, source IP address, destination IP address, source port number, and destination port number.
If packet-based load balancing is used, packets are forwarded through different links. Packet-based load balancing can be implemented only for packets forwarded by the CPU such as protocol packets.
Procedure
- Run system-view
The system view is displayed.
- Run the load-balance { flow | packet } [ all | slot slot-id ] command to configure a load balancing mode for IP packet forwarding.
By default, flow-based load balancing is used for IP packet forwarding.
This operation is also applicable to MPLS packets.