Cisco Systems 6000 manual Configuring Sticky Groups

Page 29

Configuring the Content Switching Module

Router(config-slb-sfarm)# real 10.8.0.27

Router(config-slb-real)# inservice

Router(config-slb-real)# exit

Router(config-slb-sfarm)# exit

Router(config)# ip slb policy policy_url_2

Router(config-slb-policy)# serverfarm pl_url_url_2

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

Router(config-slb-policy)# exit

Router(config)# ip slb vserver vs_url_url

Router(config-slb-vserver)# virtual 10.8.0.145 tcp 80

Router(config-slb-vserver)# slb-policypolicy_url_1

Router(config-slb-vserver)# slb-policypolicy_url_2

Router(config-slb-vserver)# inservice

Router(config-slb-vserver)# exit

Configuring Sticky Groups

Configuring a sticky group involves configuring the attributes of that group and associating it with a policy.

To configure sticky groups, perform this task:

Command

Purpose

 

 

Router(config)# ip slb sticky sticky-group-id

Ensure that connections from the same client

[netmask netmask cookie name ssl]

matching the same policy use the same real

[timeout sticky-time]

server1. Sticky time specifies the period of time

 

that the sticky information is kept. The default

 

sticky time value is 0 minutes. You must change

 

this timer to activate the sticky time.

 

 

1. The no form of this command restores the defaults.

This example shows how to configure a sticky group and associate it with a policy:

Router(config)# ip slb serverfarm pl_stick

Router(config-slb-sfarm)# real 10.8.0.18

Router(config-slb-real)# inservice

Router(config-slb-sfarm)# real 10.8.0.19

Router(config-slb-real)# inservice

Router(config-slb-real)# exit

Router(config-slb-sfarm)# exit

Router(config)# ip slb sticky 1 cookie foo timeout 100

Router(config)# ip slb policy policy_sticky_ck

Router(config-slb-policy)# serverfarm pl_stick

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

Router(config-slb-policy)# exit

Router(config)# ip slb vserver vs_sticky_ck

Router(config-slb-vserver)# virtual 10.8.0.125 tcp 90

Router(config-slb-vserver)# slb-policypolicy_sticky_ck

Router(config-slb-vserver)# inservice

Router(config-slb-vserver)# exit

 

 

Catalyst 6000 Family Content Switching Module Installation and Configuration Note

 

 

 

 

 

 

 

78-11631-02 Rev. A0

 

 

29

 

 

 

 

 

Image 29
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-CSM-to-Server Traffic Flow Client-to-Content Switching Module-to-Server Traffic FlowSafety Overview Memory Requirements CSM memory is not configurableSystem Requirements Hardware Supported Power RequirementsEnvironmental Requirements 72-876-01 Console Cable Not applicablePreparing to Install the CSM Installing the Content Switching ModuleRequired Tools 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 Set up a session between the supervisor engine and the CSM Upgrading from the Supervisor Engine BootflashCSM upgrade 127.0.0.zz c6slb-apc.revision-num.bin Routerconfig# power cycle module slot-numberCSM upgrade slot0 c6slb-apc.revision-num.bin Routerconfig# tftp-server slotxc6slb-apc.revision-num.binRouter config# power cycle module slot-number Upgrading from a Pcmcia CardSwitchport Configuring the Content Switching ModuleSwitchport access vlan Router# vlan databaseConfiguration Overview Configure the required parameters in the following sections Configuring VLANsSee for the following notes Configuring VLANsConfiguring Server-Side VLANs Configuring Client-Side VLANsConfiguring Server Farms Configuring Real Servers Configuring Policies Configuring Maps Configure multiple cookies Configure multiple cookies into a cookie mapConfiguring Sticky Groups Configuring Virtual Servers Configuring Dynamic Feedback Protocol Configuring TCP ParametersConfiguring Redirect Virtual Servers Configuring Client NAT Pools Configuring Server NAT Writing and Restoring ConfigurationsSingle Subnet Bridge Mode Configuration Configuration ExamplesConfigure a client-side Vlan Enter the Vlan modeConfigure a server-side Vlan Exit to have the configuration take effectCreate the client-side Vlan 2 and enter the SLB Secure Router Mode ConfigurationVlan mode Routerconfig# ip slb vlan 3 server Fault-Tolerant ConfigurationCreate the server-side Vlan 3 and enter the SLB Exit the submodeRouterconfig# mac access-list extended Venus Router# configure terminalRouterconfig# int GigabitEthernet 2/1 Routerconfig-if#service-policy input VenusConfiguration Parameter On Both Content Switching Modules Fault-tolerant configuration, the following rules applyAssign the Content Switching IP address on Create the client-side Vlan 2 and enter the SLB Vlan modeRouter B Hsrp address 192.158.38.10Define Vlan 9 as a fault-tolerant Vlan Assign the default route for VlanCreate the Content Switching primary Configure a client-side VLAN2Hsrp Configuration Overview Configuring HsrpCSG Vlan Configure Switch 2-FT2 Hsrp secondary as followsConfigure VLANs on Hsrp FT2 as follows Configuring CSM VLANsAdd ports to the EtherChannel as follows Configuring Probes for Health MonitoringConfigure EtherChannel on both switches as follows Http creates an Http probe with a default configuration Probe-name is the name of the probe being configured it hasIcmp creates an Icmp probe with a default configuration Telnet creates a Telnet probe with a default configurationHttp Probe Commands Available to all Probe ConfigurationsIcmp Probe DNS Probe Submode TCP ProbeFTP, SMTP, and Telnet Probe RHI Overview Configuring Route Health InjectionUnderstanding RHI Routing to VIP Addresses With RHI Routing to VIP Addresses Without RHIRouterconfig# ip slb vserver vserver1 Configuring RHI for Virtual ServersUnderstanding How the CSM Determines VIP Availability 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 World Wide Web Obtaining DocumentationDocumentation CD-ROM Ordering DocumentationTo access Cisco.com, go to the following website Contacting TAC by Using the Cisco TAC WebsiteObtaining Technical Assistance Cisco.comContacting TAC by Telephone Obtaining Technical Assistance