28
Catalyst 6000 Family Content Switching Module Installation and Configuration Note
78-11631-02 Rev. A0
Configuring the Content Switching Module
To add a cookie map, perform this task:
This example shows how to configure maps and associate them with a policy:
Router(config)#
ip slb map
url_1
url
Router(config-slb-map-url)#
match protocol http url
/url1
Router(config-slb-map-url)#
exit
Router(config)#
ip slb map
url_2
url
Router(config-slb-map-url)#
match protocol http url
/url/url/url
Router(config-slb-map-url)#
match protocol http url
/reg/*long.*
Router(config-slb-map-url)#
exit
Router(config)#
ip slb serverfarm
pl_url_url_1
Router(config-slb-sfarm)#
real 10.8.0.26
Router(config-slb-real)#
inservice
Router(config-slb-real)#
exit
Router(config-slb-sfarm)#
exit
Router(config)#
ip slb policy
policy_url_1
Router(config-slb-policy)#
serverfarm
pl_url_url_1
Router(config-slb-policy)#
url-map
url_1
Router(config-slb-policy)#
exit
Router(config)#
ip slb serverfarm
pl_url_url_2
A leading ^ in a range
Do not match any in the range. All other characters
represent themselves.
.\a
Alert (ascii 7).
.\b
Backspace (ascii 8).
.\f
Form-feed (ascii 12).
.\n
Newline (ascii 10).
.\r
Carriage return (ascii 13).
.\t
Tab (ascii 9).
.\v
Vertical tab (ascii 11).
.\0
Null (ascii 0).
.\\ Backslash.
.\x##
Any ascii character as specified in two digit hex notation.
Table 3
UNIX File Name Specifications (continued)
Convention
Description
Command
Purpose
Step 1
Router(config)
ip slb map
cookie-map-name
cookie
Configure multiple cookies into a cookie map
1
.
Step 2
Router(config-slb-map-cookie)
match
protocol http cookie
cookie-name
cookie-value
cookie-value-expression
Configure multiple cookies
1
.
1.
The
no
form of this command restores the defaults.