25
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 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
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 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:
Command
Purpose
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 configured
1,
2
.
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.
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 selected
2
.
Step 3
Router(config-slb-real)#
maxconns
max-conns
(Optional) Set the maximum number of active
connections on the real server
2
. 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 threshold
2
.
Step 5
Router(config-slb-real)#
inservice
Enable the real server for use by the CSM
2
.
Note
Repeat Steps 1 through 5 for each real server you
are configuring.
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.