< Home

persistence (SLB configuration view)

Function

The persistence command creates a sticky session profile.

The undo persistence command deletes a sticky session profile.

Format

persistence [ persistence-id ] persistence-name

undo persistence { persistence-id | persistence-name }

Parameters

Parameter Description Value
persistence-id Specifies the sticky session profile ID. The value is an integer ranging from 0 to 127.
persistence-name Specifies the sticky session profile name. The value is a string of 1 to 32 case-sensitive characters. The name must start with a letter and cannot be "all", "vsys", or "all-systems".

Views

SLB configuration view

Default Level

2: Configuration level

Usage Guidelines

Create a sticky session profile by specifying the sticky session profile ID or the sticky session profile name. The default sticky session mode is the client source IP address-based sticky session. The sticky session profile is to be referenced by a virtual server.

Example

# Create sticky session profile abc, and do not specify the ID.

<sysname> system-view
[sysname] slb
[sysname-slb] persistence abc

# Create sticky session profile abc, and specify the ID.

<sysname> system-view
[sysname] slb
[sysname-slb] persistence 1 abc
[sysname-slb-persistence-1] type cookie-insert aging-time 800
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >