< Home

session persistence mode

Function

The session persistence mode command sets a sticky session mode for intelligent uplink selection.

The undo session persistence mode command restores the sticky session mode to source-ip.

Format

session persistence mode { source-ip | destination-ip } *

undo session persistence mode

Parameters

None

Views

Global multi-egress view

PBR multi-egress view

Default Level

2: Configuration level

Usage Guidelines

The default sticky session mode is source-ip.

After running the session persistence enable command to enable the sticky session function, you can run the session persistence mode command to set a sticky session mode.

There are three sticky session modes:
  • session persistence mode source-ip: based on source IP addresses. In this mode, traffic from one source IP address or network segment is forwarded through one outbound link interface. This mode applies to scenarios sensitive to link switching.
  • session persistence mode destination-ip: based on destination IP addresses. In this mode, traffic to one destination IP address or network segment is forwarded through one outbound link interface. This mode applies to intelligent uplink selection scenarios based on link quality.
  • session persistence mode source-ip destination-ip: based on source and destination IP addresses. In this mode, traffic from one source IP address or network segment to one destination IP address or network segment is forwarded through one outgoing interface. This mode applies to scenarios where the traffic rate often reaches the interface bandwidth. Enabling the sticky session function in such a scenario has slight impacts on link load sharing calculation.

After the sticky session mode is changed, the FW immediately deletes all sticky session entries of the intelligent uplink selection policy. which may cause link switchover for some users. Therefore, exercise with caution.

Example

# Set the sticky session mode for intelligent uplink selection to destination IP address-based.

<sysname> system-view
[sysname] multi-interface
[sysname-multi-inter] session persistence mode destination-ip
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >