24
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
Configuring Server Farms
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:
•
Create the server farm
•
Configure the server farm
•
Create real servers
•
Configure the real servers
To configure server farms, perform this task:
Command
Purpose
Step 1
Router(config)#
ip slb serverfarm
serverfarm-name
Create and name a server farm and enter the
server farm configuration mode
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-sfarm)#
predictor
[
roundrobin
|
leastconns
|
ip-hash
netmask
]
Configure the load-balancing prediction
algorithm
2
. If not specified, the default is
roundrobin
.
Step 3
Router(config-slb-sfarm)#
nat
client
client-pool-name
Enable the NAT mode, client
2
. Refer to the
“Configuring Client NAT Pools” section on
page 33
3
.
3.
This step is optional.
Step 4
Router(config-slb-sfarm)#
probe
probe-name
Associate the server farm to a probe that can be
defined by the
probe
command
2, 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
one
2
. The
bindid
is used by DFP
3
.
Step 6
Router#
show ip slb serverfarm
serverfarm-name
[
detail
]
Display information about one or all server
farms.