cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
504
Views
0
Helpful
1
Replies

Real servers in different subnets

aslamta123
Level 1
Level 1

Hi ,

 

Is it possible to load balance real server across the VLANs, I have requirement to load balance two servers which are in two different subnets. Can anyone confirm that it is possible and there are no known issues in that? Here is the script for my config

rserver host rsrv1
  ip address 172.16.10.10
  inservice
rserver host rsrv2
  ip address 172.17.10.10
  inservice

serverfarm host farm-demo
  rserver rsrv1
    inservice
  rserver rsrv2
    inservice

class-map match-any VIP
  2 match virtual-address 172.16.100.100 eq 80

policy-map type loadbalance first-match server-balance
  class class-default
    serverfarm farm-demo

policy-map multi-match client-side
  class VIP
    loadbalance vip inservice
    loadbalance policy server-balance
    loadbalance vip icmp-reply active

interface vlan 20
  description side-server
  ip address 172.16.10.10 255.255.255.0
  service-policy input client-side
  no shutdown
interface vlan 30
  description side-server
  ip address 172.17.10.10 255.255.255.0
  service-policy input client-side
  no shutdown

interface vlan 10
  description side-client
  ip address 172.16.100.10 255.255.255.0
  service-policy input client-side
  no shutdown

ip route 0.0.0.0 0.0.0.0 172.16.100.1 (SVI Core)

Thnx

Aslam

1 Reply 1

Nicolas Fournier
Cisco Employee
Cisco Employee

Hi Aslam,

It shouldn't be a problem.

Just make sure the reply from the server is hitting the ACE on the same interface the request came out from (It should be the case in your setup since both of your rservers seems to be on directly connected networks and I guess they have ACE as DGW).

Regards,

Nicolas

Review Cisco Networking for a $25 gift card