Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Users might experience few discrepancies in Search results. We are working on this on our side. We apologize for the inconvenience it may have caused.
New Member

ACE Loadbalancing depending on source address

Hello

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 10.1.1.1) -> http-request -> VIP 10.10.1.1 Port 80

-> Balancing to Server-1 and Server-2

Client B (Source 10.1.2.1) -> http-request -> VIP 10.10.1.1 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 REPLY

Re: ACE Loadbalancing depending on source address

Try the following

class-map match-all YourVIP

2 match virtual-address 10.10.1.1 tcp eq www

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

2 match source-address 10.1.1.1 255.255.255.255

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

2 match source-address 10.1.2.1 255.255.255.255

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

Syed

134
Views
5
Helpful
1
Replies
CreatePlease to create content