Configuring the Content Switching Module

 

Command

Purpose

Step 5

 

 

Router(config-slb-policy)# client-groupvalue

Configure a client filter associated with a policy.

 

std-access-list-name

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

Configure the server farm serving a particular

 

serverfarm-name

load-balancing policy. Only one server farm can

 

 

be configured per policy2.

Step 7

Router(config-slb-policy)# set ip dscp

Mark traffic with a dscp-valueif packets

 

dscp-value

matched with the load-balancing policy2.

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.

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-policypolicy_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:

 

Command

Purpose

Step 1

 

 

Router(config)# ip slb map

Configure multiple URLs into a URL map in the URL map

 

url-map-name url

submode. Regular expressions for URLs (for example url1 and

 

 

url2) are based on UNIX filename specifications1, 2. See Table 3

 

 

for more information.

 

 

 

Step 2

Router(config-slb-map-url)

Match the URL map with the URL path2.

 

match protocol http url

 

 

url-path

 

 

 

 

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.

 

 

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.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Catalyst 6000 Family Content Switching Module Installation and Configuration Note

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

78-11631-02 Rev. A0

 

 

 

 

27

 

 

 

 

 

 

 

Page 27
Image 27
Cisco Systems 6000 manual Configuring Maps