Basic CSS Load Balancing Configuration
Basic CSS Load Balancing Configuration
Table of Contents
Basic CSS Load−Balancing Configuration.......................................................................................................1
Document ID: 12557................................................................................................................................1
Introduction..........................................................................................................................................................1
Prerequisites.........................................................................................................................................................1
Requirements..........................................................................................................................................1
Components Used...................................................................................................................................1
Conventions............................................................................................................................................2
Background Theory................................................................................................................................2
Configure.............................................................................................................................................................2
Bridge VLANs to Ethernet Interfaces.....................................................................................................2
Number the Circuit VLANs....................................................................................................................2
Create a Service and Keepalive..............................................................................................................3
Create a Content Owner..........................................................................................................................3
Create a Content Rule and Virtual IP Address.......................................................................................3
Add Services to a Content Rule..............................................................................................................3
Sample Configuration..........................................................................................................................................4
Verify...................................................................................................................................................................5
Basic Troubleshooting.........................................................................................................................................5
Related Information.............................................................................................................................................5
i
Basic CSS Load−Balancing Configuration
Document ID: 12557
Introduction
Prerequisites
Requirements
Components Used
Conventions
Background Theory
Configure
Bridge VLANs to Ethernet Interfaces
Number the Circuit VLANs
Create a Service and Keepalive
Create a Content Owner
Create a Content Rule and Virtual IP Address
Add Services to a Content Rule
Sample Configuration
Verify
Basic Troubleshooting
Related Information
Introduction
This document walks you through a basic Content Services Switch (CSS) load−balancing configuration and
explains the functions of each configuration element. This document does not describe in detail all of the
features of this appliance. For more information on any feature reviewed in this document, refer to to the
Related Information section.
The example presented in this document defines one Virtual IP address (VIP) and binds three real servers, or
services, behind that VIP to be load balanced.
Prerequisites
Requirements
There are no specific requirements for this document.
Components Used
The information in this document is based on these software and hardware versions:
The information in this document was created from the devices in a specific lab environment. All of the
devices used in this document started with a cleared (default) configuration. If your network is live, make sure
that you understand the potential impact of any command.
Background Theory
When you create a load−balancing configuration, the two most important CSS−specific configuration
elements to understand are content rules and services.
Content rules are where the CSS's load−balancing features are customized, virtual IP address are defined,
and where the actual servers (called services) are bound to that virtual IP address. Content rules allow you to
specify load−balancing types, sticky methods, port specific Virtual IP addresses, and a host of other features.
Once a request hits a circuit VLAN on the CSS, that request is interrogated against all its content rules for a
match. Once a match has been made between particular elements of the request and a content rule, the CSS
load balances that request to all the services bound to that content rule. Each content rule must be configured
under an owner.
Services are the actual individual servers that the CSS load balances. Services are configured individually and
can be customized with a variety of keepalive types, Internet Control Message Protocol (ICMP) by default. A
group of services can also be referred to as a 'server farm.'
Configure
In this section, you are presented with the information to configure the features described in this document.
Note: To find additional information on the commands used in this document, use the IOS Command Lookup
tool.
CSS150# config
CSS150(config)# interface e12
CSS150(config−if[e12])# bridge vlan 10
CSS150# config
Sample Configuration
CSS150−4# show run
configure
circuit VLAN10
service www−server2
ip address 10.10.10.2
keepalive type http
active
service www−server3
ip address 10.10.10.3
keepalive type http
active
content web−servers
protocol tcp
port 80
add service www−server1
add service www−server2
add service www−server3
vip address 192.168.1.1
active
Basic Troubleshooting
This section provides information you can use to troubleshoot your configuration.
Certain show commands are supported by the Output Interpreter tool, which allows you to view an analysis of
show command output.
If traffic destined to the content rule times out, and pings from the client are successful to the circuit VLAN
IP, it is a good idea to first verify the services are 'in service.' The show service command displays the status
of the services determined by the individual service keepalives. This command helps diagnose server errors. A
server only lists as being 'down' if the server has either failed to respond to its keepalive probes, or has not
been manually made 'active.'
• show summaryDisplays the relationship between owners, content rules, and services.
• show service summaryDisplays summary information for all services, including the service state,
connections, weight, and load.
Related Information
• Catalyst 6500 Series SSL Services Module Installation and Verification Note
• Downloads − Catalyst 6500/6000 Module Software
• Configuring Content Rules on the CSS
• Configuring Services on the CSS
• Configuring Service Keepalives on the CSS
• Configuring Session Persistence, Remapping, and Redirection on the CSS
• CSS Basic Configuration Guide (Software Version 7.20)
All contents are Copyright © 1992−2006 Cisco Systems, Inc. All rights reserved. Important Notices and Privacy Statement.