5-2
Catalyst 6500 Series Content Switching Module Configuration Note
OL-4612-01
Chapter 5 Configuring Real Servers and Server Farms
Configuring Real Servers
This example shows how to configure a server farm, named p1_nat, using the least-connections
(leastconns) algorithm. The real server with the fewest number of active connections will get the next
connection request for the server farm with the leastconns predictor.
Router(config-module-csm)# serverfarm
pl_nat
Router(config-slb-sfarm)# predictor leastconns
Router(config-slb-sfarm)# real 10.1.0.105
Router(config-slb-real)# inservice
Router(config-slb-sfarm)# real 10.1.0.106
Router(config-slb-real)# inservice
Configuring Real Servers
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 sends the reply 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 server
farm mode where you are adding the real server.
Step 3
Router(config-slb-sfarm)# nat client
client-pool-name
(Optional) Enables the NAT mode client
2
. (See
the “Configuring Client NAT Pools” section on
page 5-5.)
Step 4
Router(config-slb-sfarm)# no nat server
(Optional) Specifies that the destination IP
address is not changed when the load-balancing
decision is made.
Step 5
Router(config-slb-sfarm)# probe
probe-name
(Optional) Associates the server farm to a probe
that can be defined by the probe command
2
.
Step 6
Router(config-slb-sfarm)# bindid
bind-id
(Optional) Binds a single physical server to
multiple server farms and reports a different
weight for each one
2
. The bindid command is
used by DFP.
Step 7
Router(config-slb-sfarm)# failaction {purge |
reassign}
(Optional) Sets the behavior of connections to
real servers that have failed
2
.
Step 8
Router(config-slb-sfarm)# health retries 20
failed 600
Configures inband health monitoring for all the
servers in the server farm.
Step 9
Cat6k-2(config-slb-sfarm)# retcode-map
NAME_OF_MAP
Configures HTTP return error code checking
(requires the configuration of a map of type
retcode).
Step 10
Router(config-slb-sfarm)# real
ip_address
Defines a real server.
Step 11
Router(config-slb-real)# inservice
Enables the real servers.
Step 12
Router# show module csm
slot
serverfarm
serverfarm-name
[detail]
Displays information about one or all server
farms.
1. Enter the exit command to leave a mode or submode. Enter the end command to return to the menu’s top level.
2. The no form of this command restores the defaults.
Command Purpose