30
Catalyst 6000 Family Content Switching Module Installation and Configuration Note
78-11631-02 Rev. A0
Configuring the Content Switching Module
Configuring Virtual Servers
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 Level7. 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 Level7, 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:
Command Purpose
Step1 Router(config)# ip slb vserver
virtserver-name
Identify the virtual server and enter the virtual server
configuration mode1, 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.
Step2 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.
Step3 Router(config-slb-vserver)# serverfarm
serverfarm-name
Note Before you can associate a server farm with the
virtual server, you must configure the server
farm. See the “Configuring Server Farms”
section on page 24.
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.
Step4 Router(config-slb-vserver)# sticky
duration
(Optional) Configure connections from the client to
use the same real server2. The default is sticky on.
Step5 Router(config-slb-vserver)# client
ip-address network-mask [exclude]
(Optional) Restrict which clients are allowed to use the
virtual server2.
Step6 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.
Step7 Router(config-slb-vserver)# inservice Enable the virtual server for use by the CSM2.
Step8 Router# show ip slb vserver [details]Display information for virtual servers defined for
Content Switching.