Configuring a sticky method

Configuring the IP sticky method

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter sticky group view.

sticky-group group-name

N/A

3. Configure the IP sticky method.

  • Configure an IPv4 sticky method:ip [ port ] { both | destination | source } [ mask mask-length ]

  • Configure an IPv6 sticky method:ipv6 [ port ] { both | destination | source } [ prefix prefix-length ]

By default, no sticky methods exist.

Configuring the HTTP content sticky method

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter HTTP content sticky group view.

sticky-group group-name

N/A

3. Configure the HTTP content sticky method.

content [ offset offset ] [ start start-string ] [ end end-string | length length ]

By default, no sticky methods exist.

This command is not supported by the virtual servers of the fast HTTP type.

Configuring the HTTP cookie sticky method

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter HTTP cookie sticky group view.

sticky-group group-name

N/A

3. Configure the HTTP cookie sticky method.

cookie { get name cookie-name [ offset offset ] [ start start-string ] [ end end-string | length length ] | { insert | rewrite } [ name cookie-name ] }

By default, no sticky methods exist.

4. (Optional.) Specify the name of the secondary cookie that appears in the URI.

cookie secondary name value

By default, the name of the secondary cookie to be searched in the URI is not specified.

5. (Optional.) Enable checking for all packets.

check all-packet

By default, the checking for all packets is disabled.

Configuring the HTTP header sticky method

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter HTTP header sticky group view.

sticky-group group-name

N/A

3. Configure the HTTP header sticky method.

header { { { host | name header-name | url } [ offset offset ] [ start start-string ] [ end end-string | length length ] } | request-method | version }

By default, no sticky methods exist.

Configuring the HTTP payload sticky method

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter HTTP payload sticky group view.

sticky-group group-name

N/A

3. Configure the HTTP payload sticky method.

payload [ offset offset ] [ start start-string ] [ end end-string | length length ]

By default, no sticky methods exist.

This command is not supported by the virtual servers of the fast HTTP type.

Configuring the RADIUS attribute sticky method

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter RADIUS attribute sticky group view.

sticky-group group-name

N/A

3. Configure the RADIUS attribute sticky method.

radius-attribute { code attribute-code | framed-ip-address | user-name }

By default, no sticky methods exist.

Configuring the SSL sticky method

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter SSL sticky group view.

sticky-group group-name

N/A

3. Configure the SSL sticky method based on SSL session ID.

ssl session-id

By default, no sticky methods exist.