Configure persistence types that do not require a rule

To configure persistence, you must first set up a load balancing virtual server, as described in Setting Up Basic Load Balancing. You then configure persistence on the virtual server.

To configure persistence on a virtual server by using the CLI

At the command prompt, type the following commands to configure persistence and verify the configuration:

set lb vserver <name> -PersistenceType <type> [-timeout <integer>]

show lb vserver  

Timeout is the time period for which a persistence session is in effect. Default value: 2. Maximum value: 1440.

Example:

set lb vserver Vserver-LB-1 -persistenceType SOURCEIP

show lb vserver

Note: For IP-based persistence, you can also set the persistMask parameter.

To configure persistence on a virtual server by using the GUI

  1. Navigate to Traffic Management > Load Balancing > Virtual Servers, and open the virtual server.
  2. In the Persistence section, choose the persistence type that meets your requirement. The most suitable persistence type for the virtual server is available as option buttons. Other persistence types that are applicable to the specific virtual server type can be selected from the Others list.

localized image

Note

Prior to NetScaler release 12.0 build 56.20, all persistence types are available in a single Persistence drop-down list without any option buttons.

Configure persistence types that do not require a rule