EasyManua.ls Logo

Cisco ACE-4710-K9

Cisco ACE-4710-K9
418 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4-63
Cisco 4700 Series Application Control Engine Appliance Administration Guide
OL-11157-01
Chapter 4 Configuring Class Maps and Policy Maps
Class Maps and Policy Map Examples
Layer 7 Load-Balancing Example
This example shows how to create a Layer 7 load-balancing traffic policy that
enables the following processes to occur on the ACE:
Load balances traffic to the SPORTS-SERVER and NEWS-SERVER server
farms based on the following criteria:
HTTP header and header value expression
URL expression
Classifies the 3-tuple flow of the VIP address, protocol, and port as matching
criteria for server load balancing
Utilizes an HTTP parameter map to enable HTTP persistence
Perform the following steps:
Step 1 Create a Layer 7 class map that defines an HTTP header and header value
expression string and URL expression for load balancing to the
SPORTS-SERVER server farm.
host1/Admin(config)# class-map type http loadbalance match-all
SPORTS-MAP_CLASS
host1/Admin(config-cmap-http-lb)# match http header host h
eader-value
.*test.com
host1/Admin(config-cmap-http-lb)# match http url /sports/
host1/Admin(config-cmap-http-lb)# exit
Step 2 Create a Layer 7 class map that defines a URL expression for load balancing to
the NEWS-SERVER serverfarm.
host1/Admin(config)# class-map type http loadbalance NEWS-MAP_CLASS
host1/Admin(config-cmap-http-lb)# match http url /news/
host1/Admin(config-cmap-http-lb)# exit
Step 3 Create a Layer 7 server load-balancing policy by entering the following
commands:
host1/Admin(config)# policy-map type loadbalance first-match
L7_SLB_POLICY
host1/Admin(config-pmap-lb)# clas
s SPORTS-MAP_CLASS
host1/Admin(config-pmap-lb-c)# se
rverfarm SPORTS-SERVER
host1/Admin(config-pmap-lb-c)# ex
it
host1/Admin(config-pmap-lb)# clas
s NEWS-MAP_CLASS
host1/Admin(config-pmap-lb-c)# se
rverfarm NEWS-SERVER
host1/Admin(config-pmap-lb-c)# ex
it

Table of Contents

Related product manuals