cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1433
Views
0
Helpful
0
Comments
Sandeep Singh
Level 7
Level 7

 

 

 

Introduction

 

Real servers are dedicated physical servers that are typically configured in groups called server farms. These servers provide services to clients, such as HTTP or XML content, streaming media (video or audio), TFTP or FTP services, and so on. When configuring real servers, you assign names to them and specify IP addresses, connection limits, and weight values. The ACE appliance uses traffic classification maps (class maps) within policy maps to filter specified traffic and to apply specific actions to that traffic based on the load-balancing configuration. A load-balancing predictor algorithm (round-robin or least connections) determines the servers to which the ACE appliance sends connection requests. This document describes the configuration to use to configure a load balanced pair of real servers to use different port numbers based on request URL.

 

 

Requirements

 

Basic understanding of working of Cisco ACE and familiarity with ACE CLI commands.

 

 

Configuration

 

In case the real servers are not load balanced and they are using two different URL's, they would be resolving to two different VIPs. You can create two serverfarms with same servers but listening on ports 81 and 80 and create a class-map for different IP's or even same IP, listening on port 81 and 80. Any client coming with port 80 as destination would be loadbalanced to serverfarm_80 and any client coming on port 81 as destination would be loadbalanced to serverfarm_81.

class-map match-all Test_80
  2 match virtual-address 10.1.1.1 tcp eq www

class-map match-all Test_81
  3 match virtual-address 10.1.1.2 tcp eq 81

rserver r1
ip address 10.0.0.1
inservice

rserver r2
ip address 10.0.0.2
inservice

serverfarm_80
rserver r1 80
inservice
rserver r2 80
inservice

serverfarm_81
rserver r1 81
inservice
rserver r2 81
inservice

policy-map type loadbalance http first-match http
  class class-default
    serverfarm serverfarm_80

policy-map type loadbalance http first-match http_81
  class class-default
    serverfarm serverfarm_81

policy-map multi-match Test
  class Test_80
    loadbalance vip inservice
    loadbalance policy http
    loadbalance vip icmp-reply active
   class Test_81
    loadbalance vip inservice
    loadbalance policy http_81
    loadbalance vip icmp-reply active

 

If the real servers are load balanced and they answer for both URL's, but the destination port differs based on the URL, in this case basically we are redirecting any request which will come on second URL with port 80 to 81.

 

class-map match-all Test_81_redirect
   4 match virtual-address 10.1.1.2 tcp eq www

rserver redirect REDIRECT
Webhost-redirection http://%h%p:81

Serverfarm redirect Redirect
rserver REDIRECT
inservice

policy-map type loadbalance http first-match http_81_redirect
Class Test_81_redirect
Serverfarm Redirect


policy-map multi-match Test
  Class Test_81_redirect
  loadbalance vip inservice
    loadbalance policy http_81_redirect
  class Test_80
    loadbalance vip inservice
    loadbalance policy http
    loadbalance vip icmp-reply active
   class Test_81
    loadbalance vip inservice
    loadbalance policy http_81
    loadbalance vip icmp-reply active

 

 

Related Information

 

Configuring Real Servers and Server Farms
ACE 4710 same real servers, different ports

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: