The firewall load-balance command configures the load balancing mode for IP packet forwarding in a multi-egress scenario.
firewall load-balance { flow [ hash { destination-ip | destination-port | source-ip | source-port } * ] | packet }
| Parameter | Description | Value |
|---|---|---|
flow |
Indicates per-flow load balancing. |
- |
hash { destination-ip | destination-port | source-ip | source-port } * |
Indicates the hash algorithm.
|
By default, the device calculates hash values based on source and destination IP addresses. |
packet |
Indicates per-packet load balancing. |
- |
In a multi-egress scenario, when equal-cost routes exist on the device, IP packets are forwarded in per-flow load balancing mode by default. The source and destination IP addresses are used for hash calculation to select an outbound interface.
If the load of multiple links is unbalanced, you may need to configure the source IP address, source port, destination IP address, and destination port as the hash calculation parameters.