

The CSM provides high-performance connections between network devices and server farms (groups of real servers) based on Layer 4 through 7 packet information. Clients connect to the CSM by supplying the virtual IP address (VIP) of the virtual server. The CSM is configured to handle VIP address connections. When a client initiates a connection to the virtual server, the CSM chooses a real server (a physical device that is assigned to a server farm) for the connection based on configured load-balancing algorithms and policies.
Representing server farms as virtual servers facilitates scalability and availability. The addition of new servers and the removal or failure of existing servers can occur at any time without affecting the virtual server’s availability.
Sticky connections limit traffic to individual servers. These connections are configured so that multiple connections from the same client are stuck to the same real server using source IP addresses, source IP subnets, cookies, secure socket layer (SSL), or redirected using the Hypertext Transfer Protocol (HTTP) requests. Policies manage traffic by defining where to send client requests for information Configuring server load balancing requires that you know the following:
Overview

These sections describe the CSM:
Table 1 describes the features of the CSM.
Table 1 Content Switching Module Features
Management Standard Cisco IOS command-line interface
Management interface integrated with host platform
Load-Balancing Algorithms Weighted round-robin
Source address-based hashing algorithm
Flow and URL Identification URL regular expression match
Cookie regular expression match
SSL1 session ID match
Security Source IP address and URL expression match and AC entry match
Statistics Packets through normal and special switching
Connections created, established, destroyed, current, and timed out
Layer 4 load-balanced decisions and rejected connections
Layer 7 load-balanced decisions and rejected connections
Layer 4 and Layer 7 rejected connections
Redirect and FTP connections
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0

Table 1 Content Switching Module Features (continued)
Health Monitoring TCP, HTTP, ICMP, Telnet, FTP
Other Features SSL session ID, cookie and source IP address-based sticky connections
Fragmented IP frames support
MTU2 of 9000
Load and availability reporting supporting remote monitoring and management
High availability preventing service disruptions
Redundant modules configured for fault-tolerance support
The CSM front panel features are shown in Figure 1.
Figure 1 Content Switching Module Front Panel
RJ-45 (Test) connector Status
When the CSM powers up, it initializes various hardware components and communicates with the supervisor engine. The Status LED on the CSM shows the dialog with the supervisor engine and the results of the initialization.
During the normal initialization sequence, the status LED changes from Off to Red, Orange, and then Green. Table 2 describes the status LED operation.
Overview

Table 2 Content Switching Module Status LED
Off • The module is waiting for the supervisor engine to grant power.
– Power is not available to the CSM.
– Module temperature is over the limit1.
Red • The module is released from reset by the supervisor engine and is booting.
Orange • The module is initializing hardware or communicating with the supervisor engine.
Green • The module is operational; the supervisor engine has granted module online status.
Green to Orange • The module is disabled through the supervisor engine CLI 2 using the set module disable mod command.
The RJ-45 connector on the front panel provides a connection point for a management station or test device. The RJ-45 connector is covered by a removable plate. Typically, this connector is used by field engineers to perform testing and to obtain dump information.
Clients and servers communicate through the CSM using Layer 2 and Layer 3 technology in a specific VLAN configuration. (See Figure 2.) Clients connect to the client side VLAN and servers connect to the server side VLAN. Servers and clients can exist on different subnets. Servers can also be located one or more Layer 3 hops away and connect to the server-side VLAN through routers.
A client sends a request that arrives on one of the module’s VIP addresses. The CSM forwards this request to a server that can satisfy the request. The server then forwards the response to the CSM. The CSM forwards the response to the client.
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0
Overview

When the client-side and server-side VLANs are on the same subnets, you can configure the CSM in single subnet (bridge) mode. For more information, see the “Single Subnet (Bridge) Mode Configuration” section on page 35.
When the client- and server-side VLANs are on different subnets, you can configure the CSM to operate in a secure (router) mode. For more information, see the “Secure (Router) Mode Configuration” section on page 37.
You can set up a fault-tolerant configuration in either the secure (router) or single subnet (bridged) mode using redundant CSMs. For more information, see the “Fault-Tolerant Configuration” section on page 38. Using multiple VLANs, single subnet (bridge) mode and secure (router) mode can coexist in the same CSM.
Figure 2 Content Switching Module and Servers

This section describes how the traffic flows between the client and server in a CSM environment. (See Figure 3.)
Figure 3 Client-to-Content Switching Module-to-Server Traffic Flow
.com
Y
Z
When you enter a request for information by entering a URL, the traffic flow is as follows:
Step 1 You enter a URL. (For example, in Figure 3 you enter www.fox.com)
Step 2 The client contacts a DNS server to locate the IP address associated with the URL you entered.
Step 3 The DNS server sends the IP address of the virtual IP (VIP) to the client.
Step 4 The client uses that IP address (CSM VIP) to send the HTTP request to the CSM.
Step 5 The CSM receives the request with the URL, makes a load balancing decision, and selects a server. For example, in Figure 3, the CSM selects a server (X server) from the www.fox.com server pool, replacing its own VIP address with the address of the X server and forwards the traffic to the X server.
Step 6 The CSM performs the Network Address Translation (NAT).
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0
Overview · DNS server · web server farm

Aviso Este símbolo de aviso indica perigo. Encontra-se numa situação que lhe poderá causar danos físicos. Antes de começar a trabalhar com qualquer equipamento, familiarize-se com os perigos relacionados com circuitos eléctricos, e com quaisquer práticas comuns que possam prevenir possíveis acidentes. Para ver as traduções dos avisos que constam desta publicação, consulte a secção “Translated Safety Warnings” - “Traduções dos Avisos de Segurança” neste documento.
¡Advertencia! Este símbolo de aviso significa peligro. Existe riesgo para su integridad física. Antes de manipular cualquier equipo, considerar los riesgos que entraña la corriente eléctrica y familiarizarse con los procedimientos estándar de prevención de accidentes. Para ver una traducción de las advertencias que aparecen en esta publicación, consultar la sección titulada “Translated Safety Warnings” que aparece en este documento.
Varning! Denna varningssymbol signalerar fara. Du befinner dig i en situation som kan leda till personskada. Innan du utför arbete på någon utrustning måste du vara medveten om farorna med elkretsar och känna till vanligt förfarande för att förebygga skador. Om du vill se översättningar av de varningar som visas i denna publikation, se avsnittet "Translated Safety Warnings" [Översatta säkerhetsvarningar] i detta dokument.
Before you install the CSM into the Catalyst 6000 family switch, make sure your Catalyst 6000 family switch meets the hardware and software requirements listed in this section.
The CSM memory is not configurable.
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0
System Requirements

System Requirements

Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0
Required Tools

Installing the Content Switching Module
This section describes how to install the CSM into the Catalyst 6000 family switch.
To install the CSM into the Catalyst 6000 family switch, perform these steps:
Step 1 Make sure you take the necessary precautions to prevent ESD damage.
Step 2 Choose a slot for the CSM. See Figure 4 for slot numbers on a Catalyst 6000 family switch.
Note Slot 1 is reserved for the supervisor engine. Slot 2 can contain an additional supervisor engine in case the supervisor engine in slot 1 fails. If a redundant supervisor engine is not required, you can insert the CSM in slots 2 through 9 on a 9-slot chassis, or slots 2 through 6 on the 6-slot chassis, or slots 2 through 13 on the 13-slot chassis.

Installing the Content Switching Module
Figure 4 Slot Numbers on Catalyst 6000 Family Switches
STATUS
SYSTEM
CONSOLE
PWR MGMT
RESET
CONSOLE
PORT MODE
PORT 1 PORT 2
SUPERVISOR2
CONSOLE
PCMCIA EJECT
LINK
LINK
WS-X6K-SUP2-2GE
STATUS
SYSTEM
CONSOLE
PWR MGMT
RESET
CONSOLE
CONSOLE
PORT MODE
PORT 1 PORT 2
SUPERVISOR2
PCMCIA EJECT
LINK
LINK
WS-X6408
STATUS
2 3 4 5 6 7 8
LINK
LINK
LINK
LINK
LINK
LINK
WS-X6408
LINK
LINK
STATUS
2 3 4 5 6 7 8
LINK
LINK
WS-X6408
LINK
LINK
LINK
LINK
LINK
LINK
STATUS
2 3 4 5 6 7 8
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
WS-X6224
STATUS
24 PORT 100FX
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
WS-X6224
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
STATUS
LINK
LINK
LINK
24 PORT 100FX
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
WS-X6224
FAN STATUS
STATUS
24 PORT 100FX
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
WS-X6224
LINK
LINK
LINK
LINK
LINK
STATUS
24 PORT 100FX
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
INPUT
OK
FAN OK
OUTPUT
FAIL
INPUT
OK
FAN OK
OUTPUT
FAIL
(redundant) Power supply 1
Step 3 Check that there is enough clearance to accommodate any interface equipment that you will connect directly to the supervisor engine or switching-module ports.
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0

Installing the Content Switching Module
Step 4 Loosen the captive installation screws that secure the switching-module filler plate (or an existing switching module) to the desired slot.
Step 5 Remove the switching-module filler plate (or an existing switching module).
Step 6 Hold the handle of the CSM with one hand, and place your other hand under the carrier support. Do not touch the printed circuit boards or connector pins.
Step 7 Place the CSM in the slot. Align the notch on the sides of the switching-module carrier with the groove in the slot. (See Figure 5.)
Figure 5 Installing Modules in the Catalyst 6000 Family Switch
STATUS
SYSTEM
ACTIVE
PWR MGMT
RESET
DTE/ DCE
PORT 1
PORT 2
SUPERVISOR I
CONSOLE
PCMCIA EJECT
LINK
LINK
WS-X6K-SUP1
STATUS
SYSTEM
ACTIVE
PWR MGMT
RESET
CONSOLE
DTE/ DCE
PORT 1
PORT 2
SUPERVISOR I
PCMCIA EJECT
LINK
LINK
WS-X6408
STATUS
2 3 4 5 6 7 8
LINK
LINK
LINK
LINK
WS-X6408
LINK
LINK
LINK
LINK
STATUS
2 3 4 5 6 7 8
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
WS-X6408
STATUS
2 3 4 5 6 7 8
LINK
LINK
LINK
LINK
LINK
LINK
LINK
WS-X6224
LINK
STATUS
24 PORT 100FX
LINK
LINK
LINK
LINK
WS-X6224
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
STATUS
24 PORT 100FX
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
WS-X6224
LINK
LINK
LINK
STATUS
FAN LED
24 PORT 100FX
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
WS-X6224
STATUS
LINK
LINK
LINK
24 PORT 100FX
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
LINK
INPUT
FAN OK
OUTPUT
OK
FAIL
INPUT
OK
FAN OK
OUTPUT
FAIL
Step 8 Keep the CSM at a 90-degree orientation to the backplane and carefully slide the CSM into the slot until the switching-module faceplate contacts the ejector levers. (See Figure 6.)

Figure 6 Ejector Levers and Captive Installation Screws
PORT 1
PORT 2
STATUS
SYSTEM
ACTIVE
PWR MGMT
RESET
CONSOLE
PORT
MODE
LINK
LINK
CONSOLE
PCMCIA EJECT
SUPERVISOR I
Step 9 Using the thumb and forefinger of each hand, simultaneously push in the left and right levers to fully seat the CSM in the backplane connector.
Step 10 Use a screwdriver to tighten the captive installation screws on the left and right ends of the CSM.
This completes the CSM installation procedure.
When you install the CSM into the Catalyst 6000 family switch, the module goes through a boot sequence that requires no intervention. At the successful conclusion of the boot sequence, the green status LED will illuminate and remain on.
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0

Upgrading to a New Software Release
The software interface for the CSM is the Cisco IOS interface. To understand the Cisco IOS command-line interface and Cisco IOS command modes, refer to Chapter 2 in the Catalyst 6000 Family IOS Software Configuration Guide.
In any command mode, you can get a list of available commands by entering a question mark (?) as follows:
Router(config)# ip slb ?
This section describes the three methods on how to upgrade the CSM:
During the upgrade, enter all commands on a console connected to the supervisor engine. Enter each configuration command on a separate line. To complete the upgrade, enter the exit command to return to the supervisor engine prompt.
Router> ? · or

Upgrading to a New Software Release
Upgrade the CSM from the supervisor engine bootflash as follows:
Step 1 Enable the TFTP server to supply the image from bootflash as follows:
Router> Router> enable Router# conf t Router(config)# tftp-server sup-bootflash:c6slb-apc.revision-num.bin Router(config)
Step 2 Set up a session between the supervisor engine and the CSM:
Router# session CSM-slot-number 0
Step 3 Load the image from the supervisor engine to the CSM:
CSM> upgrade 127.0.0.zz c6slb-apc.revision-num.bin
zz = 12 if the supervisor engine is installed in chassis slot 1 zz = 22 if the supervisor engine is installed in chassis slot 2
Step 4 Reboot the CSM by power cycling the CSM or by issuing the following commands on the supervisor engine console.
Router# config t Router(config)# power cycle module slot-number
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0
where

Upgrading to a New Software Release
Upgrade the CSM from a removable Flash (PCMCIA) card inserted in the supervisor engine as follows:
Step 1 Enable the TFTP server to supply the image from the removable Flash card:
Router> Router> enable Router# conf t Router(config)# tftp-server slotx:c6slb-apc.revision-num.bin
x = 0 if the PCMCIA card is installed in supervisor engine PCMCIA slot 0.
Step 2 Set up a session between the supervisor engine and the CSM:
Router# session CSM-slot-number 0
Step 3 Load the image from the supervisor engine to the CSM:
Step 4 Reboot the CSM by power cycling the CSM or by issuing the following commands on the supervisor engine console:
router# config t Router (config)# power cycle module slot-number
Upgrade the CSM from an external TFTP server as follows:
Step 1 Create a VLAN on the supervisor engine for the TFTP CSM runtime image download.
Step 2 Configure the interface that is connected to your TFTP server.
Step 3 Add the interface to the VLAN.
Step 4 Enter the ip slb vlan command, as explained in the “Configuring VLANs” section on page 21, to make the VLAN a client VLAN.
Step 5 Add an IP address to the VLAN for the CSM.
where

Configuring the Content Switching Module
Step 6 Enter the show command as described in “Configuring VLANs” section on page 21 to verify the configuration.
Step 7 Make a Telnet connection into the CSM with the session CSM-slot-number 0 command.
Step 8 Upgrade the image using the upgrade TFTP-server-IP-address c6slb-apc.rev-number.bin command.
This section describes how to configure load balancing on the CSM. Before you configure the CSM, the switch must meet these prerequisites:
This example shows how to enable the csm mode:
Router(config)# ip slb mode ?
csm SLB in Application Processor Complex board rp SLB in IOS system Router(config)# ip slb mode csm
This example shows how to configure VLANs:
Router> Router> enable Router# vlan database Router(vlan)# vlan 130 VLAN 130 added:
This example shows how to configure a physical interface as a Layer 2 interface and assign it to a VLAN:
Router> Router> enable Router# config Router(config)# interface 3/1 Router(config-if)# switchport Router(config-if)# switchport access vlan 150 Router(config-if)# no shutdown Router(vlan)# exit
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0

Configuring the Content Switching Module
If the Multilayer Switch Function Card (MSFC) is used on the next hop router on either the client or the server side VLAN, then the corresponding Layer 3 VLAN interface must be configured.
This example shows how to configure the Layer 3 VLAN interface:
Router> Router> enable Router# config Router(config)# interface vlan 130 Router(config-if)# ip address 10.10.1.10 255.255.255.0 Router(config-if)# no shutdown Router(vlan)# exit
Figure 7 shows an overview of the configuration process. Required and optional operations are shown.
Figure 7 Configuration Overview
Configure server farm (required)
Configure real servers (required)
Configure virtual servers (required)

Configuring the Content Switching Module
Configure the required parameters in the following sections:
After you configure the required load-balancing parameters on the CSM, you may configure the optional parameters in the following sections:
To save or restore your configurations or to work with advanced configurations, refer to the following sections:
The CSM requires configuration for client-side and server-side VLANs when you install the module in a Catalyst 6500 series switch.
The CSM dynamically allocates one client gateway to the active router for a total of two client gateways for an HSRP group. You can configure a maximum of three HSRP groups on the client side of the CSM; fewer if other routers exist on the client-side.
You need to create both a client- and server-side VLAN. (See Figure 8.)
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0

Configuring the Content Switching Module
Figure 8 Configuring VLANs
Server-side VLAN Client-side VLAN IP address
See Figure 8 for the following notes:
Note ** HSRP provides automatic router backup using an active standby router that allows active and standby routers in an HSRP group to exchange messages and respond to topology changes by selecting a new active router dynamically. Because traffic can come from both the virtual and physical MAC addresses of the gateway, the CSM uses two entries per virtual IP gateway configured. You can configure only seven client gateways on the CSM. An HSRP group is assigned one client gateway for the virtual IP address when it is configured. (See the “Configuring HSRP” section on page 43.)

Configuring the Content Switching Module
To configure client-side VLANs, perform this task:
Step 1 Router(config)# ip slb vlan vlanid client Configure the client-side VLANs and enter the client VLAN mode1.
Step 2 Router(config-slb-vlan-client)# ip ip-address netmask
Configure an IP address to the CSM used by probes and ARP requests on this particular VLAN2.
Step 3 Router(config-slb-vlan-client)# gateway ip-address
Configure the gateway IP address. Enter this command only in the client submode.
This example shows how to configure the CSM for client-side VLANs:
Router(config)# ip slb vlan 130 client Router(config-slb-vlan-client)# ip addr 123.44.50.6 255.255.255.0 Router(config-slb-vlan-client)# gateway 123.44.50.1 Router(config-slb-vlan-client)# exit Router# show ip slb VLAN
To configure server-side VLANs, perform this task:
Step 1 Router(config)# ip slb vlan vlanid server Configure the server-side VLANs and enter the server VLAN mode1.
Step 2 Router(config-slb-vlan-server)# route ip-address netmask gateway gw-ip-address
Configure a static route to reach the real servers in case they are more than one Layer 3 hop away from the CSM.
Step 3 Router(config-slb-vlan-server)# alias ip-address netmask
Optionally, you can configure multiple IP addresses to the CSM to place the module in a different IP network than real servers without using a router. Use this command only in the server submode.
Step 4 Router(config-slb-vlan-server)# ip ip-address netmask
Configure an IP address for the server VLAN2.
Step 5 Router # show ip slb vlan Display the client-side and server-side VLAN configurations.
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 the CSM for server-side VLANs:
Router(config)# ip slb vlan 150 server Router(config-slb-vlan-server)# ip addr 123.46.50.6 255.255.255.0 Router(config-slb-vlan-server)# route 123.50.0.0 255.255.0.0 gateway 123.44.50.1 Router(config-slb-vlan-server)# alias 123.60.7.6 255.255.255.0 Router(config-slb-vlan-server)# exit
A server farm or server pool is a collection of servers that contain the same content. You specify the server farm name when you configure the server farm and add servers to it, and when you bind the server farm to a virtual server. Configuring server farms requires naming the server farm, configuring a load-balancing algorithm (predictor) and other attributes of the farm, setting or specifying a set of real servers (see the “Configuring Real Servers” section on page 25), and setting or specifying the attributes of the real servers.
When you configure server farms, you must perform the following:
To configure server farms, perform this task:
Step 1 Router(config)# ip slb serverfarm serverfarm-name
Create and name a server farm and enter the server farm configuration mode1 2.
Step 2 Router(config-slb-sfarm)# predictor [roundrobin | leastconns | ip-hash netmask]
Configure the load-balancing prediction algorithm2. If not specified, the default is roundrobin.
Enable the NAT mode, client2. Refer to the “Configuring Client NAT Pools” section on page 333.
Step 3 Router(config-slb-sfarm)# nat client client-pool-name
Step 4 Router(config-slb-sfarm)# probe probe-name Associate the server farm to a probe that can be defined by the probe command2, 3.
Step 5 Router(config-slb-sfarm)# bindid bind-id Bind a single physical server to multiple server farms and report a different weight for each one2. The bindid is used by DFP3.
Step 6 Router# show ip slb serverfarm serverfarm-name [detail]
Display information about one or all server farms.

Configuring the Content Switching Module
This example shows how to configure a server farm, named p1_nat, using the least-connections (leastconns) algorithm. The least-connections algorithm specifies which real server handles the next new connection for this server farm.
Router(config)# ip slb serverfarm pl_nat Router(config-slb-sfarm)# predictor leastconns
Real servers are physical devices assigned to a server farm. Real servers provide the services that are load balanced. When the server receives a client request, it pulls matching information from a disk and sends it to the CSM for forwarding to the client.
You configure the real server in the real server configuration mode by specifying the server IP address and port when you assign it to a server farm. You enter the real server configuration mode from the serverfarm mode where you are adding the real server.
To configure real servers, perform this task:
Step 1 Router(config-slb-sfarm)# real ip-address [port]
Identify a real server as a member of the server farm and enter the real server configuration mode. An optional translation port can also be configured1, 2.
Step 2 Router(config-slb-real)# weight weighting-value
(Optional) Set the weighting value for the virtual server predictor algorithm to assign the server’s workload capacity relative to the other servers in the server farm if the round robin or least connection is selected2.
Step 3 Router(config-slb-real)# maxconns max-conns
(Optional) Set the maximum number of active connections on the real server2. When the specified maximum is reached, no more new connections are sent to that real server until the number of active connections drops below the minimum threshold.
Step 4 Router(config-slb-real)# minconns min-conns
(Optional) Set the minimum connection threshold2.
Step 5 Router(config-slb-real)# inservice Enable the real server for use by the CSM2.
Step 6 Router# show ip slb reals [sfarm serverfarm-name] [detail]
(Optional) Display information about configured real servers. The vserver option limits the display to real servers associated with a particular virtual server. The detail option displays detailed real server information.
Step 7 Router# show ip slb conns [sfarm vserver virtserver-name] [client ip-address] [detail]
Display active connections to the CSM. The sfarm option limits the display to connections associated with a particular server farm. The client option limits the display to connections for a particular client. The detail option displays detailed connection information.
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 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
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.
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-policy policy name and the slb-policy policy name commands in the ip slb vserver submode to remove and enter policies.
To configure load-balancing policies, perform this task:
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 url-map-name
Configure a list of URLs with a policy2. You 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.
Configure a list of cookies with a policy2.
Step 3 Router(config-slb-policy)# cookie-map cookie-map-name
Step 4 Router(config-slb-policy)# sticky-group group-id
Associate this policy to a specific sticky group2.

Configuring the Content Switching Module
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 policy2.
Step 7 Router(config-slb-policy)# set ip dscp dscp-value
Mark traffic with a dscp-value if packets matched with the load-balancing policy2.
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
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 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 specifications1, 2. See Table 3 for more information.
Step 2 Router(config-slb-map-url) match protocol http url url-path
Match the URL map with the URL path2.
Table 3 UNIX File Name Specifications
* 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

Configuring the Content Switching Module
Table 3 UNIX File Name Specifications (continued)
A leading ^ in a range Do not match any in the range. All other characters represent themselves.
.\a Alert (ascii 7).
.\b Backspace (ascii 8).
.\f Form-feed (ascii 12).
.\n Newline (ascii 10).
.\r Carriage return (ascii 13).
.\t Tab (ascii 9).
.\v Vertical tab (ascii 11).
.\0 Null (ascii 0).
.\\ Backslash.
.\x## Any ascii character as specified in two digit hex notation.
To add a cookie map, perform this task:
Configure multiple cookies into a cookie map1.
Step 1 Router(config) ip slb map cookie-map-name cookie
Configure multiple cookies1.
Step 2 Router(config-slb-map-cookie) match protocol http cookie cookie-name cookie-value cookie-value-expression
This example shows how to configure maps and associate them with a policy:
Router(config)# ip slb map url_1 url Router(config-slb-map-url)# match protocol http url /url1 Router(config-slb-map-url)# exit Router(config)# ip slb map url_2 url Router(config-slb-map-url)# match protocol http url /url/url/url Router(config-slb-map-url)# match protocol http url /reg/*long.* Router(config-slb-map-url)# exit Router(config)# ip slb serverfarm pl_url_url_1 Router(config-slb-sfarm)# real 10.8.0.26 Router(config-slb-real)# inservice Router(config-slb-real)# exit Router(config-slb-sfarm)# exit Router(config)# ip slb policy policy_url_1 Router(config-slb-policy)# serverfarm pl_url_url_1 Router(config-slb-policy)# url-map url_1 Router(config-slb-policy)# exit Router(config)# ip slb serverfarm pl_url_url_2

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-map url_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-policy policy_url_1 Router(config-slb-vserver)# slb-policy policy_url_2 Router(config-slb-vserver)# inservice Router(config-slb-vserver)# exit
Configuring a sticky group involves configuring the attributes of that group and associating it with a policy.
To configure sticky groups, perform this task:
Router(config)# ip slb sticky sticky-group-id [netmask netmask | cookie name | ssl] [timeout sticky-time]
Ensure that connections from the same client matching the same policy use the same real 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.
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-group 1 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-policy policy_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

Configuring the Content Switching Module
Virtual servers represent groups of real servers and are associated with real server farms through policies. Configuring virtual servers requires setting the attributes of the virtual server specifying the default server farm (default policy) and eventually associating other server farms through a list of policies.
Note A single virtual server can be configured to operate at either Level 4 or Level 7. For a virtual server to operate at Level 4, specify the server farm (default policy) as part of the virtual server configuration (see Step 3 in the following task table). For a virtual server to operate at Level 7, add slb policies in the configuration of the virtual server (see Step 7 in the following task table).
Configure the virtual server in the virtual server configuration submode.
To configure virtual servers, perform this task:
Step 1 Router(config)# ip slb vserver virtserver-name
Identify the virtual server and enter the virtual server configuration mode1, 2.
Step 2 Router(config-slb-vserver)# virtual ip-address tcp port
Set the IP address for the virtual server optional port number or name and the connection coupling and type2.
Step 3 Router(config-slb-vserver)# serverfarm serverfarm-name
Associate the default server farm with the virtual server2. The default server farm (default policy) is used if a request does not match any slb policy or if there are no policies associated with the virtual server.
Step 4 Router(config-slb-vserver)# sticky duration
(Optional) Configure connections from the client to use the same real server2. The default is sticky on.
Step 5 Router(config-slb-vserver)# client ip-address network-mask [exclude]
(Optional) Restrict which clients are allowed to use the virtual server2.
Step 6 Router(config-slb-vserver)# slb-policy policy-name
(Optional) Associate content switching policies with a virtual server2. Policies are processed in the order in which they are entered in the virtual server configuration. See the “Configuring Policies” section on page 26.
Step 7 Router(config-slb-vserver)# inservice Enable the virtual server for use by the CSM2.
Step 8 Router# show ip slb vserver [details] Display information for virtual servers defined for Content Switching.

Configuring the Content Switching Module
This example shows how to configure a virtual server named barnett, associate it with the server farm named bosco, and configure a sticky connection with a duration of 50 seconds to sticky group 12:
Router(config)# ip slb vserver barnett Router(config-slb-vserver)# virtual 12.3.23.4 tcp 34 Router(config-slb-vserver)# serverfarm bosco Router(config-slb-vserver)# sticky 50 group 12 Router(config-slb-vserver)# end Router# show ip slb vservers
Transmission Control Protocol (TCP) is a connection-oriented protocol that uses known protocol messages for activating and deactivating TCP sessions. In server load balancing, when adding or removing a connection from the connection database, the Finite State Machine correlates TCP signals such as SYN, SYN/ACK, FIN, and RST. When adding connections, these signals are used for detecting server failure and recovery and for determining the number of connections per server.
Note The CSM also supports User Datagram Protocol (UDP). Because UDP is not connection-oriented, protocol messages cannot be generically sniffed (without knowing details of the upper-layer protocol) to detect the beginning or end of a UDP message exchange. Detection of UDP connection termination is based on a configurable idle timer. Protocols requiring multiple simultaneous connections to the same real server (such as FTP) are supported. Internet Control Management Protocol (ICMP) messages (such as ping) destined for the virtual IP address are also handled.
To configure TCP parameters, perform this task:
Step 1 Router(config)# ip slb vserver virtserver-name
Identify the virtual server and enter the virtual server configuration mode1,2.
Step 2 Router(config-slb-vserver)# idle duration Configure the amount of time (in seconds) connection information is maintained in the absence of packet activity for a connection2.
This example shows how to configure TCP parameters for virtual servers:
Router(config)# ip slb vserver barnett Router(config-slb-vserver)# idle 10
Configuring the Dynamic Feedback Protocol (DFP) allows servers to provide feedback to the CSM to enhance load balancing. The DFP mechanism in server load balancing allows host agents (residing on the physical server) to dynamically report the change in status of the host systems providing a virtual service.
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0

Configuring the Content Switching Module
To configure DFP, perform this task:
Step 1 Router(config)# ip slb dfp [password password]
Configure DFP manager, supply an optional password, and enter the DFP agent submode1, 2.
Step 2 Router(config-slb-dfp)# agent ip-address port [activity-timeout | retry-count | retry-interval]
Configure time intervals between keepalive messages, number of consecutive connection attempts or invalid DFP reports, and the interval between connection attempts2.
Step 3 Router# show ip slb dfp [weights | agent ip-address port | detail]
Display DFP manager and agent information.
This example shows how to configure the dynamic feedback protocol without a password or agent:
Router(config)# ip slb dfp password password Router(config-slb-dfp)# agent 123.234.34.55 5 6 10 20 Router(config-slb-dfp)# exit
The redirect-vserver command is a server farm submode command that allows you to configure virtual servers dedicated to real servers. This mapping provides connection persistence for clients to real servers across TCP sessions.
To configure redirect virtual servers, perform this task:
Step 1 Router(config-slb-sfarm)# redirect-vserver name
Configure virtual servers dedicated to real servers and enter the redirect server submode1, 2.
Step 2 Router(config-slb-redirect-v)# webhost relocation relocation string
Configure the relocation string to be sent in response to HTTP requests to the host name. Only the beginning of the relocation string can be specified. The remaining portion is taken from the original HTTP request2.
Step 3 Router(config-redirect-v)# webhost backup backup string
Configure the relocation string sent in response to HTTP requests in the event that the redirect server is out of service. Only the beginning of the relocation string can be specified. The remaining portion is taken from the original HTTP request2.
Step 4 Router(config-redirect-v)# virtual v_ipaddress tcp port
Configure the redirect virtual server IP address and port2.

Configuring the Content Switching Module
Step 5 Router(config-redirect-v)# idle duration Set the CSM connection idle timer for the redirect virtual server2.
Step 6 Router(config-redirect-v)# client ip-address network-mask [exclude]
Configure the combination of the ip-address and network-mask used to restrict which clients are allowed to access the redirect virtual server2.
Step 7 Router(config-redirect-v)# inservice Enable the redirect virtual server and begin advertisements2.
Step 8 Router# show ip slb vserver redirect [detail]
Show all redirect servers configured.
This example shows how to configure redirect virtual servers to specify virtual servers to real servers in a server farm:
Router (config)# ip slb serverfarm FARM1 Router (config-slb-sfarm)# redirect-vserver REDIR_1 Router (config-slb-redirect-)# webhost relocation relo 301 Router (config-slb-redirect-)# virtual 172.1.2.30 tcp www Router (config-slb-redirect-)# inservice Router (config-slb-redirect-)# exit Router (config-slb-sfarm)# redirect-vserver REDIR_2 Router (config-slb-redirect-)# webhost relocation relo 301 Router (config-slb-redirect-)# virtual 172.1.2.31 tcp www Router (config-slb-redirect-)# inservice Router (config-slb-redirect-)# exit Router (config-slb-sfarm)# real 10.8.0.8 Router (config-slb-real)# redirect-vserver REDIR_1 Router (config-slb-real)# inservice Router (config-slb-sfarm)# real 10.8.0.9 Router (config-slb-real)# redirect-vserver REDIR_2 Router (config-slb-real)# inservice Router (config-slb-real)# end Router# show ip slb serverfarm detail
When you configure client Network Address Translation (NAT) pools, NAT converts the source IP address of the client requests into an IP address on the server-side VLAN. Use the NAT pool name in the server farm submode, using the nat command, to specify which connections need to be client NATed.
To configure client NAT pools, perform this task:
Step 1 Router(config)# ip slb natpool pool-name start-ip end-ip netmask mask
Configure a content switching NAT. You must create at least one client address pool to use this command1, 2.
Step 2 Router(config)# ip slb serverfarm serverfarm-name
Enter the server farm submode to apply the client NAT.
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0

Writing and Restoring Configurations
Step 3 Router(config-slb-serverfarm)# nat clientpool-name
Associate the configured NAT pool with the server farm.
Step 4 Router# show ip slb natpool [name pool-name] [detail]
Display the NAT configuration.
This example shows how to configure client NAT pools:
Router(config)# ip slb natpool pool1 102.36.445.2 102.36.16.8 netmask 255.255.255.0 Router(config)# ip slb serverfarm farm1 Router(config-slb-sfarm)# nat client pool1
Server NAT allows you to support connections initiated by real servers and to provide a default configuration used for servers initiating connections that do not have matching entries in the server NAT configuration.
To configure NAT for the server, perform this task:
Router(config)# ip slb static [drop | nat [ipaddress | virtual]]
Configure the server-originated connections. Options include dropping them, NATing them with a given IP address, or NATing them with the virtual IP address that they are associated with1, 2.
For information about saving and restoring configurations, refer to the Catalyst 6000 Family IOS Software Configuration Guide.


These examples show how to configure Content Switching in the following configurations:
In the single subnet (bridge) mode configuration, the client- and server-side VLANs are on the same subnets. Figure 9 shows how the single subnet (bridge) mode configuration is set up.
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0
Configuration Examples

To configure Content Switching for the single subnet (bridge) mode, perform this task:
Step 1 Router(config)# vlan database Enter the VLAN mode1.
Step 2 Router(vlan)# vlan 2 Configure a client-side VLAN2.
Step 3 Router(vlan)# vlan 3 Configure a server-side VLAN.
Step 4 Router(vlan)# exit Exit to have the configuration take effect.
Step 5 Router(config)# ip slb vlan 2 client Create the client-side VLAN 2 and enter the SLB VLAN mode1.
Step 6 Router(config-slb-vlan-client)# ip addr 192.158.38.10 255.255.255.0
Assign the CSM IP address on VLAN 2.
Step 7 Router(config-slb-vlan-client)# gateway 192.158.38.20
Define the client-side VLAN gateway to Router A.
Step 8 Router(config-slb-vlan-client)# gateway 192.158.38.21
Define the client-side VLAN gateway to Router B.
Step 9 Router(config-slb-vserver)# ip slb vlan 3 server
Create the server-side VLAN 3 and enter the SLB VLAN mode.
Step 10 Router(config-slb-vlan-client)# ip addr 192.158.38.10 255.255.255.0
Assign the CSM IP address on VLAN 3.
Step 11 Router(config-slb-vlan-client)# exit Leave the submode.
Step 12 Router(config)# ip slb vserver VIP1 Create a virtual server and enter the SLB vserver mode.
Step 13 Router(config-slb-vserver)# virtual 192.158.38.30 tcp www Create a virtual IP address.
Step 14 Router(config-slb-vserver)# serverfarm farm1
Associate the virtual server with the server farm.
Configuration Examples

In secure (router) mode, the client- and server-side VLANs are on different subnets. Figure 10 shows how the secure (router) mode configuration is set up.
Figure 10 Secure (Router) Mode Configuration
To configure Content Switching in secure (router) mode, perform this task:
Step 1 Router(config)# vlan database Enter the VLAN mode1.
Step 2 Router(vlan)# vlan 2 Configure a client-side VLAN2.
Step 3 Router(vlan)# vlan 3 Configure a server-side VLAN.
Step 4 Router(vlan)# exit Exit to have the configuration take effect.
Step 5 Router(config)# ip slb vlan 2 client Create the client-side VLAN 2 and enter the SLB VLAN mode.
Step 6 Router(config-slb-vlan-client)# ip addr 192.158.38.10 255.255.255.0 Assign the CSM IP address on VLAN 2.
Step 7 Router(config-slb-vlan-client)# gateway 192.158.38.20 Define the client-side VLAN gateway to Router A.
Step 8 Router(config-slb-vlan-client)# gateway 192.158.38.21 Define the client-side VLAN gateway to Router B.
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0
Configuration Examples

Step 9 Router(config)# ip slb vlan 3 server Create the server-side VLAN 3 and enter the SLB VLAN mode.
Step 10 Router(config-slb-vlan-server)# ip addr 192.158.39.10 255.255.255.0 Assign the CSM IP address on VLAN 3.
Step 11 Router(config-slb-vlan-server)# exit Exit the submode.
Step 12 Router(config)# ip slb vserver VIP1 Create a virtual server and enter the SLB vserver mode.
Step 13 Router(config-slb-vserver)# virtual 192.158.38.30 tcp www Create a virtual IP address.
Step 14 Router(config-slb-vserver)# serverfarm farm1
Associate the virtual server with the server farm.
This section describes a fault-tolerant configuration. In this configuration, two separate Catalyst 6000 family chassis each contain a CSM.
In the secure (router) mode, the client- and server-side VLANs provide the fault-tolerant (redundant) connection paths between the CSM and the routers on the client side and the servers on the server side. In a redundant configuration, two CSMs perform primary and secondary roles. Each CSM contains the same VLAN, IP, virtual server, server pool, and real server information. From the client-side and server-side networks, each CSM is configured identically. The network sees the fault-tolerant configuration as a single CSM.
Configuring fault-tolerance requires the following:
Figure 11 shows the QoS configuration topology.
Configuration Examples

Figure 11 QoS Configuration Topology
Heartbeat message port gl/1 (sending)
Without this configuration, 802.1Q priority information is not preserved in packets traversing through to the switch. Heartbeat messages sent from the primary to the secondary CSM must contain this priority information so that they will be transmitted without delay. When an excessive delay occurs, an unnecessary takeover might occur.
You can overcome this limitation by configuring the sending port g1/1 to retain priority information upon transmission, and the receiving port g1/1 to trust the Class of Service (CoS) (Priority Bits) for the incoming packets.
To configure QoS for fault-tolerance, enter the following commands:
Router> Router> enable Router# configure terminal Router(config)# Router(config)# class-map match-any Venus Router(config-cmap)# match access-group name Venus Router(config-cmap)# Router(config-cmap)# exit Router(config)# policy-map Venus Router(config-pmap)# class Venus Router(config-pmap-c)# trust cos Router(config-pmap-c)# exit Router(config-pmap)# exit Router(config)# Router(config)# mls qos Router(config)# Router(config)# mac access-list extended Venus Router(config-ext-macl)# permit any any Router(config-ext-macl)# exit Router(config)# int GigabitEthernet 2/1 Router(config-if)# no ip address Router(config-if)# service-policy input Venus Router(config-if)# switchport Router(config-if)# switchport access vlan 200 Router(config-if)# switchport trunk encapsulation dot1q Router(config-if)# switchport trunk allowed vlan 1,200,1002-1005 Router(config-if)# switchport mode trunk Router(config-if)# no cdp enable Router(config-if)# end Router# !
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0

In the fault-tolerant configuration, the following rules apply:
Virtual server name X
Virtual IP address X
Alias IP addresses X
Redundancy group name X
Redundancy VLAN ID X
Because each CSM has a different IP address on the client- and server-side VLAN, the CSM can issue health monitor probes (see the “Configuring Probes for Health Monitoring” section on page 46 for health monitoring information) to the network and receive responses. Both the primary and secondary CSMs send probes while operational. In the event that the passive CSM assumes control, it knows the status of the servers because of the probe responses it has received.
Enter the backup or no backup commands in the ip slb ft configuration mode to enable or disable sticky connection backup for the CSMs. Configuring fault-tolerant sticky connections requires the following:
If no router is present on the server-side VLAN, then each server’s default route points to the aliased IP address.
Figure 12 shows how the secure (router) mode fault-tolerant configuration is set up.

Figure 12 Fault-Tolerant Configuration
Alias IP address (default gateway)
Alias IP address (default gateway) 192.158.39.20
Gateway 192.158.38.20
192.158.38.20
192.158.38.10
192.158.39.10
NAS router Client workstation
HSRP
VLAN 2
192.158.38.40
192.158.39.30
Gateway 192.158.38.20
Alias IP address (default gateway)
Alias IP address (default gateway) 192.158.39.20
192.158.38.20
To configure the primary (A) CSM for fault tolerance, perform this task (see Figure 12):
Step 1 Router(config)# ip slb vlan 2 client Create the client-side VLAN 2 and enter the SLB VLAN mode1.
Step 2 Router(config-slb-vlan-client)# ip addr 192.158.38.10 255.255.255.0 Assign the Content Switching IP address on VLAN 1.
Step 3 Router(config-slb-vlan-client)# gateway 192.158.38.20 255.255.255.0 Define the client-side VLAN gateway to Router A and Router B HSRP address.
Step 4 Router(config)# ip slb vserver vip1 Create a virtual server and enter the SLB vserver mode.
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0

Step 5 Router(config-slb-vserver)# virtual 192.158.38.30 tcp www Create a virtual IP address.
Step 6 Router(config)# ip slb vlan 3 server Create the server-side VLAN 3 and enter the SLB VLAN mode.
Step 7 Router(config-slb-vserver)# ip addr 192.158.39.10 255.255.255.0 Assign the CSM IP address on VLAN 2.
Step 8 Router(config-slb-vserver)# alias ip addr 192.158.39.20 255.255.255.0 Assign the default route for VLAN 2.
Step 9 Router(config) ip slb vlan 9 ft Define VLAN 9 as a fault-tolerant VLAN.
Step 10 Router(config)# ip slb fault_tolerance group ft-group-number vlan 9
Create the Content Switching primary and secondary (A/B) group VLAN 9.
Step 11 Router(config)# vlan database Enter the VLAN mode1.
Step 12 Router(vlan)# vlan 2 Configure a client-side VLAN22.
Step 13 Router(vlan)# vlan 3 Configure a server-side VLAN3.
Step 14 Router(vlan)# vlan 9 Configure a fault-tolerant VLAN9.
Step 15 Router(vlan)# exit Enter the exit command to have the configuration take affect.
To configure the secondary (B) CSM for fault tolerance, perform this task (see Figure 12):
Step 1 Router(config)# ip slb vlan 2 client Create the client-side VLAN 2 and enter the SLB VLAN mode1.
Step 2 Router(config-slb-vlan-client)# ip addr 192.158.38.40 255.255.255.0 Assign the Content Switching IP address on VLAN 2.
Step 3 Router(config) ip slb vlan 9 ft Define VLAN 9 as a fault-tolerant VLAN.
Step 4 Router(config-slb-vlan-client)# gateway 192.158.38.20 Define the client-side VLAN gateway.
Step 5 Router(config)# ip slb vserver vip1 Create a virtual server and enter the SLB vserver mode.
Step 6 Router(config-slb-vserver)# virtual 192.158.38.30 tcp www Create a virtual IP address.
Step 7 Router(config)# ip slb vlan 3 server Create the server-side VLAN 3 and enter the SLB VLAN mode.
Step 8 Router(config-slb-vserver)# ip addr 192.158.39.30 255.255.255.0 Assign the CSM IP address on VLAN 3.
Step 9 Router(config-slb-vserver)# alias 192.158.39.20 255.255.255.0 Assign the default route for VLAN 2.
Step 10 Router(config)# ip slb fault_tolerance group ft-group-number ab vlan 9
Create the CSM primary and secondary (A/B) group VLAN 9.
Configuration Examples

This section provides an overview of a Hot Standby Router Protocol (HSRP) configuration (see Figure 13) and describes how to configure the CSMs with HSRP and CSM failover on the Catalyst 6000 family switches.
The figure shows two Catalyst 6000 switches, Switch 1 and Switch 2, are configured to route from a client-side network (10.100/16) to an internal CSM client network (10.6/16, VLAN 136) through an HSRP gateway (10.100.0.1).
In the example configuration, two CSMs (one in Switch 1 and one in Switch 2) are configured to forward traffic between a client -side and a server-side VLAN:
The actual servers on the server network (10.5/1) point at the CSM server network through an aliased gateway (10.5.0.1), allowing the servers to run a secure subnet.
In the example configuration, an EtherChannel is set up with trunking enabled, allowing traffic on the internal CSM Client network to travel between the two Catalyst 6000 family switches. The setup is shown in Figure 13.
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0
Configuration Examples


(Gateway = 10.5.0.1) via Secure Subnet and IP Alias
This procedure describes how to create an HSRP gateway for the client-side network. The gateway is HSRP ID 2 for the client-side network.
Step 1 Configure Switch 1—FT1 (HSRP primary) as follows:
interface FastEthernet3/6 ip address 10.100.0.2 255.255.0.0 standby 2 priority 110 preempt standby 2 ip 10.100.0.1
Step 2 Configure Switch 2—FT2 (HSRP secondary) as follows:
interface FastEthernet3/6 ip address 10.100.0.3 255.255.0.0 standby 2 priority 100 preempt standby 2 ip 10.100.0.1
Configuration Examples

This section describes how to create a fault-tolerant HSRP secure-mode configuration. To create a nonsecure-mode configuration, enter the commands described with these exceptions:
Step 1 Configure VLANs on HSRP FT1 as follows:
ip slb mode csm ip slb vlan 136 client ip address 10.6.0.245 255.255.0.0 gateway 10.6.0.1
ip slb vlan 272 server ip address 10.5.0.2 255.255.0.0 alias 10.5.0.1 255.255.0.0
ip slb vlan 71 ft
ip slb ft group 88 vlan 71 priority 30 preempt
interface Vlan136 ip address 10.6.0.2 255.255.0.0 standby 1 priority 100 preempt standby 1 ip 10.6.0.1 standby 1 track Fa3/6 10
Step 2 Configure VLANs on HSRP FT2 as follows:
ip slb mode csm ip slb vlan 136 client ip address 10.6.0.246 255.255.0.0 gateway 10.6.0.1
ip slb vlan 272 server ip address 10.5.0.3 255.255.0.0 alias 10.5.0.1 255.255.0.0
ip slb vlan 71 ft
ip slb ft group 88 vlan 71 priority 20 preempt
interface Vlan136 ip address 10.6.0.3 255.255.0.0 standby 1 priority 100 preempt standby 1 ip 10.6.0.1 standby 1 track Fa3/6 10
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0
Configuration Examples

Configuring Probes for Health Monitoring
Step 3 Configure EtherChannel on both switches as follows:
interface Port-channel100 switchport switchport trunk encapsulation dot1q switchport trunk allowed vlan 136
To prevent problems, remove the SERVER and FT CSM VLAN's, for example: swtichport trunk remove vlan 71 switchport trunk remove vlan 272
Step 4 Add ports to the EtherChannel as follows:
interface FastEthernet3/25 switchport channel-group 100 mode on
Configuring probes to the real servers allows you to determine if the real servers are operating correctly. A real server’s health is categorized as follows:
The CSM supports probes used to monitor real servers. Configuring a probe involves the following:
The CSM supports a variety of probe types that monitor real servers, including FTP, DNS, or HTTP.
To set up a probe, you must configure it by naming the probe and specifying the probe type while in probe submode.
After configuring a probe, you must associate it with a server farm for the probe to take effect. All servers in the server farm receive probes of the probe types that are associated with that server farm. You can associate one or more probe types with a server farm.

Configuring Probes for Health Monitoring
After you configure a probe, associate single or multiple probes with a server farm. All servers in the server farm receive probes of the probe types that are associated with that pool.
To specify a probe type and name, perform this task:
Router(config)# ip slb probe probe-name [http | icmp | telnet | tcp | ftp | smtp | dns]
Specify a probe type and a name1.
Router# show ip slb probe Display all probes and their configuration.
This example shows how to configure a probe:
Router(config)# ip slb probe probe1 tcp Router(config-slb-probe-tcp)# interval 120 Router(config-slb-probe-tcp)# retries 3 Router(config-slb-probe-tcp)# failed 300 Router(config-slb-probe-tcp)# open 10 Router(config-slb-probe-tcp)# receive 10
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0

Configuring Probes for Health Monitoring
These commands are common to all probe types:
Set the interval between probes in seconds (from the end of the previous probe to the beginning of the next probe)1.
Default = 120 seconds
Set the number of failed probes that are allowed before marking the server as failed1.
Set the time, in seconds, to wait before probing a failed server1.
Default = 300 seconds
Set the maximum time to wait for a TCP connection. This command is not used for any non-TCP health checks (ICMP or DNS1).
Default = 10 seconds
Set the maximum time in seconds to wait for a reply from the real server1.
Default = 10 seconds
An HTTP probe establishes an HTTP connection to a real server and then sends an HTTP request and verifies the response. The ip slb probe probe-name http command places the user in HTTP probe configuration submode.
To configure an HTTP probe, perform this task:
Step 1 Router(config)# ip slb probe probe-name http
Configure an HTTP probe and enter the HTTP probe submode1.
Step 2 Router(config-slb-probe-http)# credentials username [password]
Configure basic authentication values for the HTTP SLB probe1.

Configuring Probes for Health Monitoring
Step 3 Router(config-slb-probe-http)# expect status min-number [max-number]
Configure a status code to expect from the HTTP probe. You can configure multiple status ranges by entering one expect command at a time1.
min-number—If you do not specify a max-number, this number is taken as a single status code. If you specify a max-number, this number is taken as the minimum status code of a range.
max-number—The maximum status code in a range. The default range is 0–999. (Any response from the server is considered valid.)
Step 4 Router(config-slb-probe-http)# header field-name [field-value]
Configure a header field for the HTTP probe. Multiple header fields may be specified1.
Configure the request method used by an HTTP probe1:
Step 5 Router(config-slb-probe-http)# request [method [get | head]] [url path]
An ICMP probe sends an ICMP echo (for example, ping) to the real server. The ip slb probe icmp command enters the ICMP probe configuration mode. All the common ip slb probe commands are supported except open, which is ignored.
Step 1 Router(config)# ip slb probe probe-name icmp Configure an ICMP probe and enter the ICMP probe submode1.
Step 2 Router(config-slb-probe-icmp)# [failed | interval | retries | receive]
Configure the intervals to wait between probes of a failed server and between probes. Also, specify the time to make a TCP connection, to receive a reply from the server, and to limit the number of retries before considering the real server as failed.
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0

Configuring Probes for Health Monitoring
A TCP probe establishes and removes connections. The ip slb probe tcp command enters the TCP probe configuration mode. All the common ip slb probe commands are supported.
Step 1 Router(config)# ip slb probe probe-name tcp Configure a TCP probe and enter the TCP probe submode1.
Step 2 Router(config-slb-probe-tcp)# [expect | failed | interval | open | receive | retries]
Configure the intervals to wait between probes of a failed server and between probes. Also, specify the time to make a TCP connection, to receive a reply from the server, and to limit the number of retries before considering the real server as failed.
An FTP, SMTP, or Telnet probe establishes a connection to the real server and verifies that a greeting from the application was received. The ip slb probe (ftp, smtp, or telnet) command enters the corresponding probe configuration mode. All the ip slb probe common options are supported. Multiple status ranges are supported, one command at a time.
To configure a status code to expect from the FTP, SMTP, or Telnet probe, perform this task:
Step 1 Router(config)# ip slb probe probe-name [ftp | smtp | telnet]
Configure an FTP, SMTP, or Telnet probe and enter the FTP, SMTP, or Telnet probe submode1.
Step 2 Router(config-slb-probe-ftp)# [expect status min-number [max-number] | failed | interval | retries | receive]
Configure the intervals to wait between probes of a failed server and between probes. Also, specify the time to make a TCP connection, to receive a reply from the server, and to limit the number of retries before considering the real server as failed.
A DNS probe sends a domain name resolve request to the real server and verifies the returned IP address. The ip slb probe dns command places the user in DNS probe configuration submode. All the ip slb probe common options are supported except open, which is ignored.

Configuring Route Health Injection
To specify the domain name resolve request, perform this task:
Step 1 Router(config)# ip slb probe probe-name dns Configure an DNS probe and enter the tcp probe submode1.
Step 2 Router(config-slb-probe-dns)# [expect | failed | interval | retries | receive]
Configure times to wait between probes to make a DNS connection, to receive a reply from the server, and to limit the number of retries before considering the real server as failed.
These sections describe the route health injection (RHI):
These sections describe the RHI:
RHI allows the CSM to advertise the availability of a VIP address throughout the network. Multiple CSM devices with identical VIP addresses and services can exist throughout the network. One CSM can override the load-balancing services over the other devices if the services are no longer available on the other devices, or one CSM can provide the services because it is logically closer to the client systems than other server load-balancing devices.
To enable RHI, configure the CSM to do the following:
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0

Configuring Route Health Injection
The MSFC periodically propagates the VIP address availability information that RHI provides.
Without RHI, traffic reaches the VIP address by following a route to the client VLAN to which the VIP address belongs. When the CSM powers on, the MSFC creates routes to client VLANs in its routing table and shares this route information with other routers. To reach the VIP, the client systems rely on the router to send the requests to the network subnet address where the individual VIP address lives.
If the subnet or segment is reachable but the virtual servers on the CSM at this location are not operating, the requests fail. Other CSM devices can be at different locations. However, the routers only send the requests based on the logical distance to the subnet.
Without RHI, traffic is sent to the VIP address without any verification that the VIP address is available. The real servers attached to the VIP might not be active.
With RHI, the CSM sends advertisements to the MSFC when VIP addresses become available and withdraws advertisements for VIP addresses that are no longer available. The router looks in the routing table to find the path information it needs to send the request from the client to the VIP address. When the RHI feature is turned on, the advertised VIP address information is the most specific match. The request for the client is sent through the path where it reaches the CSM with active VIP services.
When multiple instances of a VIP address exist, a client router receives the information it needs (availability and hop count) for each instance of a VIP address, allowing it to determine the best available route to that VIP address. The router picks the path where the CSM is logically closer to the client system.
Note With RHI, you must also configure probes because the CSM determines if it can reach a given VIP address by probing all the real servers that serve its content. After determining if it can reach a VIP address, the CSM shares this availability information with the MSFC. The MSFC, in turn, propagates this VIP availability information to the rest of the intranet.

Configuring Route Health Injection
For the CSM to determine if a VIP is available, you must configure a probe (HTTP, ICMP, Telnet, TCP, FTP, SMTP, or DNS) and associate it with a server farm. With probes configured, the CSM performs these checks:
With RHI, the CSM sends advertise messages to the MSFC containing the available VIP addresses. The MSFC adds an entry in its routing table for each VIP address it receives from the CSM. The routing protocol running on the MSFC sends routing table updates to other routers. When a VIP address becomes unavailable, its route is no longer advertised, the entry times out, and the routing protocol propagates the change.
Step 1 Verify that you have configured VLANs (see the “Configuring VLANs” section on page 21).
Step 2 Associate the probe with a server farm (see the “Configuring Server Farms” section on page 24).
Step 3 Configure the CSM to probe real servers (see the “Configuring Probes for Health Monitoring” section on page 46).
Step 4 Enter the advertise active SLB virtual server command to enable RHI for each virtual server:
Router(config)# ip slb vserver virtual_server_name Router(config-slb-vserver)# advertise active
This example shows how to enable RHI for the virtual server named vserver1.
Router(config)# ip slb vserver vserver1 Router(config-slb-vserver)# advertise active
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0

Catalyst 6000 family switching modules, when installed in a system, comply with the standards listed in Table 4.
Table 4 Regulatory Standards Compliance
Compliance CE1 Marking
Safety UL2 1950, CSA3-C22.2 No. 950, EN4 60950, IEC5 950, TS6 001, AS/NZS7 3260
EMC FCC8 Part 15 (CFR9 47) Class A, ICES10-003 Class A, EN55022 Class A, CISPR22 Class A, AS/NZS 3548 Class A, and VCCI Class A, EN55024, EN300 386, EH50082-1, EN55022 Class B, CISPR22 Class B, VCCI Class B, AS/NZ 3548 Class B
Safety Information Referral Warning
Varoitus Ennen kuin asennat järjestelmän tai käytät tai huollat sitä, lue Asennuspaikan valmistelu-jaturvaopas -opasta. Tässä oppaassa on tärkeitä turvallisuustietoja, jotka tulisi tietää ennen järjestelmän käyttämistä.
Regulatory Standards Compliance

Advarsel Før du installerer, tar i bruk eller utfører vedlikehold på systemet, må du lese Veiledning for stedsklargjøring og sikkerhet. Denne håndboken inneholder viktig informasjon om sikkerhet som du bør være kjent med før du begynner å arbeide med systemet.
¡Advertencia! Antes de instalar, manejar o arreglar el sistema, le aconsejamos que consulte la Guía de prevención y preparación de una instalación. Esta guía contiene importante información para su seguridad que debe saber antes de comenzar a trabajar con el sistema.
Varning! Innan du installerar, använder eller utför service på systemet ska du läsa Förberedelser och säkerhet Handbok. Denna handbok innehåller viktig säkerhetsinformation som du bör känna till innan du arbetar med systemet.
Varoitus Käytä tämän toimenpiteen aikana maadoitettuja rannesuojia estääksesi kortin vaurioitumisen sähköstaattisen purkauksen vuoksi. Älä kosketa taustalevyä suoraan kädelläsi tai metallisella työkalulla sähköiskuvaaran takia.
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0
Translated Safety Warnings

Advarsel Bruk jordingsarmbånd under prosedyren for å unngå ESD-skader på kortet. Unngå direkte berøring av bakplanet med hånden eller metallverktøy, slik at di ikke får elektrisk støt.
¡Advertencia! Usartiras conectadas a tierra en las muñecas durante este procedimiento para evitar daños en la tarjeta causados por descargas electrostáticas. No tocar el plano posterior con las manos ni con ninguna herramienta metálica, ya que podría producir un choque eléctrico.
Varning! Använd jordade armbandsremmar under denna procedur för att förhindra elektrostatisk skada på kortet. Rör inte vid baksidan med handen eller metallverktyg då detta kan orsaka elektrisk stöt.
Translated Safety Warnings

Varoitus Ainoastaan koulutettu ja pätevä henkilökunta saa asentaa tai vaihtaa tämän laitteen.
Advarsel Kun kvalifisert personell med riktig opplæring bør montere eller bytte ut dette utstyret.
¡Atención! Estos equipos deben ser instalados y reemplazados exclusivamente por personal técnico adecuadamente preparado y capacitado.
Varning Denna utrustning ska endast installeras och bytas ut av utbildad och kvalificerad personal.
For more detailed installation and configuration information, refer to the following publications:
http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml
Related Documentation

The following sections provide sources for obtaining documentation from Cisco Systems.
You can access the most current Cisco documentation on the World Wide Web at the following sites:
Cisco documentation and additional literature are available in a CD-ROM package, which ships with your product. The Documentation CD-ROM is updated monthly and may be more current than printed documentation. The CD-ROM package is available as a single unit or as an annual subscription.
Cisco documentation is available in the following ways:
http://www.cisco.com/cgi-bin/order/order_root.pl
http://www.cisco.com/go/subscription
If you are reading Cisco product documentation on the World Wide Web, you can submit technical comments electronically. Click Feedback in the toolbar and select Documentation. After you complete the form, click Submit to send it to Cisco.
You can e-mail your comments to bug-doc@cisco.com.
To submit your comments by mail, for your convenience many documents contain a response card behind the front cover. Otherwise, you can mail your comments to the following address:
Cisco Systems, Inc. Document Resource Connection 170 West Tasman Drive San Jose, CA 95134-9883
We appreciate your comments.
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0
Obtaining Documentation

Cisco provides Cisco.com as a starting point for all technical assistance. Customers and partners can obtain documentation, troubleshooting tips, and sample configurations from online tools. For Cisco.com registered users, additional troubleshooting tools are available from the TAC website.
Cisco.com is the foundation of a suite of interactive, networked services that provides immediate, open access to Cisco information and resources at anytime, from anywhere in the world. This highly integrated Internet application is a powerful, easy-to-use tool for doing business with Cisco.
Cisco.com provides a broad range of features and services to help customers and partners streamline business processes and improve productivity. Through Cisco.com, you can find information about Cisco and our networking solutions, services, and programs. In addition, you can resolve technical issues with online technical support, download and test software packages, and order Cisco learning materials and merchandise. Valuable online skill assessment, training, and certification programs are also available.
Customers and partners can self-register on Cisco.com to obtain additional personalized information and services. Registered users can order products, check on the status of an order, access technical support, and view benefits specific to their relationships with Cisco.
To access Cisco.com, go to the following website:
The Cisco TAC website is available to all customers who need technical assistance with a Cisco product or technology that is under warranty or covered by a maintenance contract.
If you have a priority level 3 (P3) or priority level 4 (P4) problem, contact TAC by going to the TAC website:
P3 and P4 level problems are defined as follows:
In each of the above cases, use the Cisco TAC website to quickly find answers to your questions.
To register for Cisco.com, go to the following website:
http://www.cisco.com/register/
If you cannot resolve your technical issue by using the TAC online resources, Cisco.com registered users can open a case online by using the TAC Case Open tool at the following website:
http://www.cisco.com/tac/caseopen
Obtaining Technical Assistance

If you have a priority level 1(P1) or priority level 2 (P2) problem, contact TAC by telephone and immediately open a case. To obtain a directory of toll-free numbers for your country, go to the following website:
http://www.cisco.com/warp/public/687/Directory/DirTAC.shtml
P1 and P2 level problems are defined as follows:
Catalyst 6000 Family Content Switching Module Installation and Configuration Note 78-11631-02 Rev. A0
Obtaining Technical Assistance

This document is to be used in conjunction with the documents listed in the “Related Documentation” section.
AccessPath, AtmDirector, Browse with Me, CCIP, CCSI, CD-PAC, CiscoLink, the Cisco Powered Network logo, Cisco Systems Networking Academy, the Cisco Systems Networking Academy logo, Cisco Unity, Fast Step, Follow Me Browsing, FormShare, FrameShare, IGX, Internet Quotient, IP/VC, iQ Breakthrough, iQ Expertise, iQ FastTrack, the iQ Logo, iQ Net Readiness Scorecard, MGX, the Networkers logo, ScriptBuilder, ScriptShare, SMARTnet, TransPath, Voice LAN, Wavelength Router, and WebViewer are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn, and Discover All That’s Possible are service marks of Cisco Systems, Inc.; and Aironet, ASIST, BPX, Catalyst, CCDA, CCDP, CCIE, CCNA, CCNP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, the Cisco IOS logo, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Empowering the Internet Generation, Enterprise/Solver, EtherChannel, EtherSwitch, FastHub, FastSwitch, GigaStack, IOS, IP/TV, LightStream, MICA, Network Registrar, Packet, PIX, Post-Routing, Pre-Routing, RateMUX, Registrar, SlideCast, StrataView Plus, Stratm, SwitchProbe, TeleRouter, and VCO are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and certain other countries.
All other trademarks mentioned in this document or Web site are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0110R)
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
Obtaining Technical Assistance
Pages referenced in this manual — manufacturer, support and downloads.
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.