Cisco Systems 6000 manual Configuring Policies

Page 26

Configuring the Content Switching Module

This example shows how to create real servers:

Router(config)# ip slb serverfarm serverfarm

Router(config-slb-sfarm)# real 10.8.0.7

Router(config-slb-real)# inservice

Router(config-slb-sfarm)# real 10.8.0.8

Router(config-slb-real)# inservice

Router(config-slb-sfarm)# real 10.8.0.9

Router(config-slb-real)# inservice

Router(config-slb-sfarm)# real 10.8.0.10

Router(config-slb-real)# inservice

Router(config-slb-real)# end

Router# show ip slb real detail

Router# show ip slb conns detail

Configuring Policies

Policies are access rules that traffic must match when balancing to a server farm. They provide the means for the CSM to balance Layer 7 traffic. Multiple policies can be assigned to one virtual server, creating multiple access rules for that virtual server. When configuring policies, you first specify access rules by URL maps, client-groups, and sticky groups, and then you combine these access rules under a particular policy.

 

 

 

 

Note

 

You must associate policies with one server farm. A policy that does not have an associated server

 

 

 

 

 

 

 

farm cannot forward traffic. The server farm associated with a policy receives all the requests that

 

 

 

 

 

 

 

match that policy.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

When the CSM is able to match policies, it selects the policy that appears first in the policy list. Policies

 

 

 

 

 

 

 

are located in the policy list in the sequence in which they were bound to the virtual server. You can

 

 

 

 

 

 

 

reorder the policies in the list by removing policies and reentering them in the correct order. Enter the

 

 

 

 

 

 

 

no slb-policypolicy name and the slb-policypolicy name commands in the ip slb vserver submode to

 

 

 

 

 

 

 

remove and enter policies.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Caution

 

When changing the policies associated with a vserver, you must take out and put back the vserver in

 

 

 

 

 

 

 

service to reflect the changes.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To configure load-balancing policies, perform this task:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command

Purpose

 

 

 

 

Step 1

 

 

 

 

 

 

 

Router(config)# ip slb policy policy-name

Create the policy and enter the policy submode

 

 

 

 

 

 

 

 

to configure the policy attributes1.

 

 

 

 

 

Step 2

Router(config-slb-policy)# url-map

Configure a list of URLs with a policy2. You

 

 

 

 

 

 

url-map-name

must have previously created and configured the

 

 

 

 

 

 

 

 

URL maps and cookie maps with the ip slb map

 

 

 

 

 

 

 

 

command. See the “Configuring Maps” section

 

 

 

 

 

 

 

 

on page 27.

 

 

 

 

 

 

 

 

 

 

 

 

Step 3

Router(config-slb-policy)# cookie-map

Configure a list of cookies with a policy2.

 

 

 

 

 

 

cookie-map-name

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Step 4

Router(config-slb-policy)# sticky-group

Associate this policy to a specific sticky group2.

 

 

 

 

 

 

group-id

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Catalyst 6000 Family Content Switching Module Installation and Configuration Note

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

26

 

 

 

 

 

 

78-11631-02 Rev. A0

 

 

 

 

 

 

 

 

 

 

Image 26
Contents Contents Overview These sections describe the CSM FeaturesDescribes the features of the CSM Status LED CSM front panel features are shown in FigureFront Panel Description Off Red Orange Green Green to Orange Operation ModeRJ-45 Connector Content Switching Module and Servers Client-to-Content Switching Module-to-Server Traffic Flow Client-to-CSM-to-Server Traffic FlowSafety Overview Memory Requirements CSM memory is not configurableSystem Requirements Environmental Requirements Power RequirementsHardware Supported 72-876-01 Console Cable Not applicableRequired Tools Installing the Content Switching ModulePreparing to Install the CSM Software RequirementsInstalling the CSM Power supply Installing Modules in the Catalyst 6000 Family Switch Verifying the Installation Verifying the InstallationUpgrading to a New Software Release Using the Command-Line InterfaceAccessing Online Help CSM upgrade 127.0.0.zz c6slb-apc.revision-num.bin Upgrading from the Supervisor Engine BootflashSet up a session between the supervisor engine and the CSM Routerconfig# power cycle module slot-numberRouter config# power cycle module slot-number Routerconfig# tftp-server slotxc6slb-apc.revision-num.binCSM upgrade slot0 c6slb-apc.revision-num.bin Upgrading from a Pcmcia CardSwitchport access vlan Configuring the Content Switching ModuleSwitchport Router# vlan databaseConfiguration Overview Configuring VLANs Configure the required parameters in the following sectionsConfiguring VLANs See for the following notesConfiguring Client-Side VLANs Configuring Server-Side VLANsConfiguring Server Farms Configuring Real Servers Configuring Policies Configuring Maps Configure multiple cookies into a cookie map Configure multiple cookiesConfiguring Sticky Groups Configuring Virtual Servers Configuring TCP Parameters Configuring Dynamic Feedback ProtocolConfiguring Redirect Virtual Servers Configuring Client NAT Pools Writing and Restoring Configurations Configuring Server NATConfiguration Examples Single Subnet Bridge Mode ConfigurationConfigure a server-side Vlan Enter the Vlan modeConfigure a client-side Vlan Exit to have the configuration take effectCreate the client-side Vlan 2 and enter the SLB Secure Router Mode ConfigurationVlan mode Create the server-side Vlan 3 and enter the SLB Fault-Tolerant ConfigurationRouterconfig# ip slb vlan 3 server Exit the submodeRouterconfig# int GigabitEthernet 2/1 Router# configure terminalRouterconfig# mac access-list extended Venus Routerconfig-if#service-policy input VenusFault-tolerant configuration, the following rules apply Configuration Parameter On Both Content Switching ModulesRouter B Hsrp address Create the client-side Vlan 2 and enter the SLB Vlan modeAssign the Content Switching IP address on 192.158.38.10Create the Content Switching primary Assign the default route for VlanDefine Vlan 9 as a fault-tolerant Vlan Configure a client-side VLAN2Configuring Hsrp Hsrp Configuration OverviewConfigure Switch 2-FT2 Hsrp secondary as follows CSG VlanConfiguring CSM VLANs Configure VLANs on Hsrp FT2 as followsAdd ports to the EtherChannel as follows Configuring Probes for Health MonitoringConfigure EtherChannel on both switches as follows Icmp creates an Icmp probe with a default configuration Probe-name is the name of the probe being configured it hasHttp creates an Http probe with a default configuration Telnet creates a Telnet probe with a default configurationCommands Available to all Probe Configurations Http ProbeIcmp Probe DNS Probe Submode TCP ProbeFTP, SMTP, and Telnet Probe RHI Overview Configuring Route Health InjectionUnderstanding RHI Routing to VIP Addresses Without RHI Routing to VIP Addresses With RHIUnderstanding How the CSM Determines VIP Availability Configuring RHI for Virtual ServersRouterconfig# ip slb vserver vserver1 Understanding Propagation of VIP Availability InformationRegulatory Standards Compliance Translated Safety WarningsSafety Information Referral Warning Wrist Strap Warning Blank Faceplate Installation Requirement Warning Translated Safety Warnings Release Notes for Catalyst 6000 Family IOS Software Related DocumentationQualified Personnel Warning Documentation CD-ROM Obtaining DocumentationWorld Wide Web Ordering DocumentationObtaining Technical Assistance Contacting TAC by Using the Cisco TAC WebsiteTo access Cisco.com, go to the following website Cisco.comContacting TAC by Telephone Obtaining Technical Assistance