![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/9/7d/97dbfad5-42d9-482f-8e76-92c60c743a51/97dbfad5-42d9-482f-8e76-92c60c743a51-bg1b.png)
27
Catalyst 6000 Family Content Switching Module Installation and Configuration Note
78-11631-02 Rev. A0
Configuring the Content Switching Module
This example shows how to configure load-balancing policies and associate them to virtual servers:
Router(config)# ip slb policy policy_sticky_ck
Router(config-slb-policy)# serverfarm pl_sticky
Router(config-slb-policy)# url-map map1
Router(config-slb-policy)# exit
Router(config)# ip slb vserver vs_sticky_ck
Router(config-slb-vserver)# slb-policy policy_sticky_ck
Configuring Maps
You configure maps to define multiple URLs and cookies into groups that can be associated with a policy
when you configure the policy. (See the “Configuring Policies” section on page 26.)
To add a URL map, perform this task:
Step 5
Router(config-slb-policy)# client-group value
| std-access-list-name
Configure a client filter associated with a policy.
Only standard IP access lists are used to define
a client filter. Refer to the Catalyst 6000 Family
Software Configuration Guide for information
about configuring access lists.
Step 6
Router(config-slb-policy)# serverfarm
serverfarm-name
Configure the server farm serving a particular
load-balancing policy. Only one server farm can
be configured per policy
2
.
Step 7
Router(config-slb-policy)# set ip dscp
dscp-value
Mark traffic with a dscp-value if packets
matched with the load-balancing policy
2
.
1. Enter the exit command to leave a mode or submode. Enter the end command to return to the menu’s top level.
2. The no form of this command restores the defaults.
Command Purpose
Command Purpose
Step 1
Router(config)# ip slb map
url-map-name url
Configure multiple URLs into a URL map in the URL map
submode. Regular expressions for URLs (for example url1 and
url2) are based on UNIX filename specifications
1,
2
. See Table 3
for more information.
1. Enter the exit command to leave a mode or submode. Enter the end command to return to the menu’s top level.
2. The no form of this command restores the defaults.
Step 2
Router(config-slb-map-url)
match protocol http url
url-path
Match the URL map with the URL path
2
.
Table 3 UNIX File Name Specifications
Convention Description
* Zero or more characters.
? Exactly one character.
\ Escaped character.
Bracketed range [0-9] Matching any single character from the range.