29
Catalyst 6000 Family Content Switching Module Installation and Configuration Note
78-11631-02 Rev. A0
Configuring the Content Switching Module
Router(config-slb-sfarm)#
real 10.8.0.27
Router(config-slb-real)#
inservice
Router(config-slb-real)#
exit
Router(config-slb-sfarm)#
exit
Router(config)#
ip slb policy
policy_url_2
Router(config-slb-policy)#
serverfarm
pl_url_url_2
Router(config-slb-policy)#
url-map
url_2
Router(config-slb-policy)#
exit
Router(config)#
ip slb vserver
vs_url_url
Router(config-slb-vserver)#
virtual 10.8.0.145 tcp 80
Router(config-slb-vserver)#
slb-policy
policy_url_1
Router(config-slb-vserver)#
slb-policy
policy_url_2
Router(config-slb-vserver)#
inservice
Router(config-slb-vserver)#
exit
Configuring Sticky Groups
Configuring a sticky group involves configuring the attributes of that group and associating it with a
policy.
To configure sticky groups, perform this task:
This example shows how to configure a sticky group and associate it with a policy:
Router(config)#
ip slb serverfarm
pl_stick
Router(config-slb-sfarm)#
real 10.8.0.18
Router(config-slb-real)#
inservice
Router(config-slb-sfarm)#
real 10.8.0.19
Router(config-slb-real)#
inservice
Router(config-slb-real)#
exit
Router(config-slb-sfarm)#
exit
Router(config)#
ip slb sticky
1
cookie
foo
timeout
100
Router(config)#
ip slb policy
policy_sticky_ck
Router(config-slb-policy)#
serverfarm
pl_stick
Router(config-slb-policy)#
sticky-group
1
Router(config-slb-policy)#
exit
Router(config)#
ip slb vserver
vs_sticky_ck
Router(config-slb-vserver)#
virtual 10.8.0.125 tcp 90
Router(config-slb-vserver)#
slb-policy
policy_sticky_ck
Router(config-slb-vserver)#
inservice
Router(config-slb-vserver)#
exit
Command
Purpose
Router(config)#
ip slb sticky
sticky-group-id
[
netmask
netmask
|
cookie
name
|
ssl
]
[
timeout
sticky-time
]
Ensure that connections from the same client
mat
ching the same policy use the same real
server
1
. Sticky time specifies the period of time
that the sticky information is kept. The default
sticky time value is 0 minutes. You must change
this timer to activate the sticky time.
1.
The
no
form of this command restores the defaults.