ACE Loadbalancing depending on source address

Unanswered Question
Aug 6th, 2009
User Badges:


Does anyone know a solution for my problem?

Is ist possible with the ACE to balance a service (e.g. web service)

on different Real-Servers depending the source-Range the Client

come from? Point is that both clients call the same VIP address, but

depending the source they have to go to different serverfarms.

Client A (Source -> http-request -> VIP Port 80

-> Balancing to Server-1 and Server-2

Client B (Source -> http-request -> VIP Port 80

-> Balancing to Server-3 and Server-4

I've tried different things but something like two different class-maps

with a VIP AND a source (or access-list) statements the ACE not accept.

I am very pleased for any hint on this.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Syed Iftekhar Ahmed Thu, 08/06/2009 - 09:51
User Badges:
  • Blue, 1500 points or more

Try the following

class-map match-all YourVIP

2 match virtual-address tcp eq www

class-map type http loadbalance match-any CLASS-NetworkA

2 match source-address

class-map type http loadbalance match-any CLASS-NetworkB

2 match source-address

policy-map type loadbalance first-match Yourpolicy

class CLASS-NetworkA

serverfarm Sfarm-withserver1-2

class CLASS-NetworkB

serverfarm Sfarm-withserver3-4

policy-map multi-match VIPS

class YourVIP

loadbalance vip inservice

loadbalance policy Yourpolicy

loadbalance vip icmp-reply active

I think it will work



This Discussion