The persistence command creates a sticky session profile.
The undo persistence command deletes a sticky session profile.
persistence [ persistence-id ] persistence-name
undo persistence { persistence-id | persistence-name }
| 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". |
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.
# 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