The load-balance hash-key ip command configures a device to use source or destination IP addresses as hash elements to balance all incoming IP packets on a specific or all interface boards.
The undo load-balance hash-key ip command disables a device from using source or destination IP addresses as hash elements to balance all incoming IP packets on a specific or all interface boards.
This function is disabled by default.
Parameter | Description | Value |
---|---|---|
destination-ip |
Uses destination IP addresses to balance data packets. Select destination IP addresses if the change scope of source IP addresses exceeds that of destination IP addresses. |
- |
source-ip |
Uses source IP addresses to balance data packets. Select source IP addresses if the change scope of destination IP addresses exceeds that of source IP addresses. |
- |
ip |
Enable the load balancing function for traffic with IP packet header received by an interface board. |
- |
Usage Scenario
A device by default uses 5-tuple information to balance traffic through outbound interfaces. The default load balancing mode may result in load imbalance. To prevent load imbalance, run the load-balance hash-key ip command to configure a device to use source or destination IP addresses as hash elements to balance all incoming IP packets on a specific or all interface boards. This command ensures that traffic is hashed to the same outbound interface.
Precautions
In VS mode, this command is supported only by the admin VS.