33
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 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
Configuring Client NAT Pools
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:
Step5 Router(config-redirect-v)# idle duration Set the CSM connection idle timer for the redirect
virtual server2.
Step6 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.
Step7 Router(config-redirect-v)# inservice Enable the redirect virtual server and begin
advertisements2.
Step8 Router# show ip slb vserver redirect
[detail]
Show all redirect servers configured.
1. Enter the exit co mmand 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
Command Purpose
Step1 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.
Step2 Router(config)# ip slb serverfarm
serverfarm-name
Enter the server farm submode to apply the
client NAT.