cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
759
Views
0
Helpful
2
Replies

HOWTO: load balance based on source subnet

robwu2006
Level 1
Level 1

Hi Guys,

We are currently working out if there is a way to load balance specific subnets to a specific rserver within a server farm behind the one VIP.

For example (all Rservers within one serverfarm Serv_farm001):

Subnet 10.10.10.0/24  load balance to Rserver A ( with Rserver B as backup )

Subnet 20.20.20.0/24  load balance to Rserver B ( with Rserver A as backup )

I can see from the configuration guide that you could maybe use sticky src IP to do this, but I haven't seen anything to confirm this.

Any takers on this, I'm sure it would be a familar common thing that others are doing out there?

Looking fwd to the responses!

Cheers

R

2 Replies 2

pablo.nxh
Level 3
Level 3

Hi Rob,

You can either do this on the incoming-interface ACL or for easier management you can do the following:

class-map type http loadbalance match-any Subnet-A
  2 match source-address 10.10.10.0 255.255.255.0

class-map type http loadbalance match-any Subnet-B
  2 match source-address 20.20.20.0 255.255.255.0

policy-map type loadbalance first-match SLB
  class Subnet-A
    serverfarm A
  class Subnet-B
    Serverfarm B

HTH

__ __

Pablo

Hi Pablo

Thanks  for the infor, not sure if we will implement this, so will let  you know how we go if we decide on it!

Also sorry about the late reply, a few wks of  holidays!