cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
415
Views
5
Helpful
1
Replies

ACE Loadbalancing depending on source address

glischer
Level 1
Level 1

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 1

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

Review Cisco Networking for a $25 gift card