Configuring per-packet or per-flow load sharing

Load sharing can be implemented in one of the following ways:

To configure per-flow or per-packet load sharing:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Configure load sharing.

  • In standalone mode:ip load-sharing mode { per-flow [ dest-ip | dest-port | ip-pro | src-ip | src-port ] | per-packet } global

  • In IRF mode :ip load-sharing mode { per-flow [ dest-ip | dest-port | ip-pro | src-ip | src-port ] | per-packet } { global | slot slot-number }

By default, the device identifies a flow based on the source and destination IP addresses.