6-10
Catalyst 6500 Series Content Switching Module Configuration Note
OL-4612-01
Chapter 6 Configuring Virtual Servers, Maps, and Policies
Configuring Maps
Router(config-slb-sfarm)# exit
Router(config-module-csm)# map
url_1
url
Router(config-slb-map-url)# match protocol http url
/url1
Router(config-slb-map-url)# exit
Router(config-module-csm)# 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-module-csm)# policy
policy_url_1
Router(config-module-csm)# 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-module-csm)# 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
Using the map command, you create a map group with the type HTTP header. When you enter the map
command, you are placed in a submode where you can specify the header fields and values for CSM to
search for in the request.
To create a map for the HTTP header, perform this task:
For more information about header maps, see the “Configuring Generic Header Parsing” section on
page 6-12.
To create a map for return code checking, perform this task:
To configure HTTP return error code checking, perform this task:
For more information about return code maps, see the “Configuring HTTP Return Code Checking”
section on page 9-8.
Command Purpose
Router(config-module-csm)# map
name
header
Creates and names an HTTP header map group.
Command Purpose
Router(config-module-csm)# map
name
retcode
Creates and names a return code map group.
Command Purpose
Router(config-slb-sfarm)# retcode-map
name_of_map
Configures HTTP return error code checking.