ip load-sharing mode per-flow
Use ip load-sharing mode per-flow to configure per-flow load sharing.
Use undo ip load-sharing mode per-flow to restore the default.
Syntax
ip load-sharing mode per-flow [ algorithm algorithm-number | [ dest-ip | dest-port | ingress-port | ip-pro | src-ip | src-port ] * | tunnel { inner | outer } ] [ slot slot-number ]
undo ip load-sharing mode [ slot slot-number ]
Default
The device performs per-flow load sharing based on the following criteria: source IP address, destination IP address, source port number, destination port number, IP protocol number, ingress port, and VLAN.
Views
System view
Predefined user roles
network-admin
Parameters
algorithm algorithm-number: Enables flow-based load sharing algorithm switching. The algorithm-number argument specifies the algorithm to be switched, and is in the range of 0 to 8. Value 0 indicates the default algorithm.
dest-ip: Identifies flows by destination IP address.
dest-port: Identifies flows by destination port.
ingress-port: Identifies flows by ingress port.
ip-pro: Identifies flows by protocol ID.
src-ip: Identifies flows by source IP address.
src-port: Identifies flows by source port.
tunnel { inner | outer }: Performs load sharing for IP tunnel packets. The inner keyword identifies flows by inner IP header information. The outer keyword identifies flows by outer IP header information.
slot slot-number: Specifies an IRF member device by its member ID.
Examples
# Configure per-flow load sharing on IRF member device 2.
<Sysname> system-view [Sysname] ip load-sharing mode per-flow slot 2