< Home

persistence (virtual server view)

Function

The persistence command references a sticky session profile.

The undo persistence command cancels the reference of a sticky session profile by a virtual server. That is, the sticky session function is disabled.

Format

persistence persistence-name

undo persistence

Parameters

Parameter Description Value
persistence-name Specifies the sticky session profile name. The specified sticky session profile name must already exist. The name must start with a letter and cannot be "all", "vsys", or "all-systems".

Views

Virtual server view

Default Level

2: Configuration level

Usage Guidelines

A virtual server enables the sticky session function by referencing a sticky session profile.

When a virtual server references a sticky session profile, the protocol configuration of the virtual server cannot conflict with the sticky session configuration of the referenced sticky session profile.

If the virtual server protocol is SSL, the sticky session mode can be session-id or source-ip. If the virtual server protocol is HTTP or HTTPS (SSL uninstallation is configured for HTTPS), the sticky session mode can be cookie-insert, cookie-passive, cookie-rewrite, or source-ip. If the virtual server protocol is another protocol, the sticky session mode can only be source-ip. If the sticky session mode is not selected correctly, a prompt "virtual server protocol conflicts with the session persistence mode" is displayed.

Example

# Virtual server a references sticky session profile abc.

<sysname> system-view
[sysname] slb
[sysname-slb] vserver 0 a
[sysname-slb-vserver-0] persistence abc
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >