Configuring Server-Initiated Connections
Configuring Server-Initiated Connections
The NAT for the server allows you to support connections initiated by real servers and to provide a
default configuration used for servers initiating connections that do not have matching entries in the
server NAT configuration. By default, the CSM allows server-originated connections without NAT.
To configure NAT for the server, perform this task:
Command
Step 1
Router(config)# static [drop | nat
[ ip-address | virtual]]
Step 2
Router(config-slb-static)# real ip-address
[ subnet-mask ]
1.
2.
Configuring URL Hashing
When you choose a server farm for a connection, you can select a specific real server in that server farm.
You can choose least connections, round robin, or URL hashing to select a real server.
URL hashing is a load-balancing predictor for Layer 7 connections. You can configure URL hashing on
the CSM on a server farm-by-server farm basis. The CSM chooses the real server by using a hash value
based on a URL. This hash value may be computed on the entire URL or on a portion of it. To select only
a portion of the URL for hashing, you can specify the beginning and ending patterns in the URL so that
only the portion of the URL from the specified beginning pattern through the specified ending pattern is
hashed. The CSM supports URL hashing in software release 2.1(1).
Unless you specify a beginning and an ending pattern (see the
Patterns" section on page
Configuring a URL Hashing Predictor
You must configure URL hashing for all server farms that will be using the URL hashing predictor,
regardless of whether they are using the entire URL or a beginning and ending pattern.
To configure URL hashing as a load-balancing predictor for a server farm, perform this task:
Command
Router(config-slb-sfarm)#
predictor hash url
Catalyst 6500 Series Content Switching Module Configuration Note
5-6
Enter the exit command to leave a mode or submode. Enter the end command to return to the menu's top level.
The no form of this command restores the defaults.
5-7), the entire URL is hashed and used to select a real server.
Chapter 5
Purpose
Configures the server-originated connections.
Options include dropping the connections,
configuring them with NAT with a given IP
address, or with the virtual IP address that they
are associated with
Configures the static NAT submode where the
servers will have this NAT option. You cannot
use the same real server with multiple NAT
configuration options.
Purpose
Configures the URL hashing and load-balancing predictor for a
server farm.
Configuring Real Servers and Server Farms
1, 2
.
"Configuring Beginning and Ending
OL-4612-01