2-156
Catalyst 6500 Series Switch Content Switching Module with SSL Command Reference
OL-7029-01
Chapter 2 Content Switching Module with SSL Commands
sticky
sticky
To ensure that connections from the same client that match the same SLB policy use the same real server
on subsequent connections and enter the sticky submode, use the sticky command. To remove a sticky
group, use the no form of this command.
sticky sticky-group-id {netmask netmask | cookie name [insert] | ssl | header name [default |
header | static]} [address [source | destination | both]] [timeout sticky-time]
no sticky sticky-group-id
Syntax Description
Defaults The sticky time default value is 1440 minutes (24 hours).
Command Modes Module CSM configuration submode
Command History
Usage Guidelines Specifying a net mask permits sticky connections based on the masked client IP address.
Use the sticky time option to ensure that connections from the same client that match the same SLB
policy use the same real server. If you specify a nonzero value, the last real server that was used for a
connection from a client is remembered for the sticky-time value after the end of the client’s latest
connection.
However, if the environment variable NO_TIMEOUT_IP_STICKY_ENTRIES is set to 1, then the sticky
timer for a specific entry is reset from the point where the last session ends. This timeout policy applies
to sessions using IP_Sticky only. Sessions using other forms of persistence (for example, cookie and
url-hash) are not affected by this behavior.
sticky-group-id ID to identify the sticky group instance; the range is from 1 to 255.
netmask netmask Specifies the network mask for IP stickiness.
cookie name Specifies name of the cookie attached to the sticky-group-id value.
insert (Optional) Specifies the cookie insert.
ssl Specifies SSL stickiness.
header name Specifies HTTP header stickiness.
address | source | destination
both
Specifies the real server IP address for the source, or the destination,
or both.
timeout sticky-time (Optional) Specifies the sticky timer duration in minutes; the range is
from 0 to 65535.
Release Modification
CSM-S release 1.1(1) This command was introduced.
CSM-S release 2.1(1) Changed the default timeout from 0 to 1440.
CSM release 4.1(1) The insert keyword was added.
CSM release 4.2(1) The header keyword was added.