Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

CSM servers in different routers

Hi,

I would like to make a balancer with different servers, these servers are in different routers.

Example:

(router 1 + CSM )server 1: 10.227.20.20

(router 2) server 2: 10.227.30.30

(router 3) server 3: 10.227.40.40

How I can do to redirect the traffics to the others routers ??

This is a example where i am working

In the CSM

vlan 331 client

ip address 10.227.92.4 255.255.255.0

gateway 158.227.92.1

vlan 504 server

ip address 10.227.20.1 255.255.255.0

-->how redirect trafic to 10.227.30 and 10.227.40???

serverfarm GRANJA

nat server

no nat client

real 10.227.20.20

inservice

real 10.227.30.30

inservice

real 10.227.40.40

inservice

vserver SERVER

virtual 10.227.99.163 any

serverfarm GRANJA

persistent rebalance

inservice

In the router :

ip route 10.227.99.163 255.255.255.255 10.227.92.4

Thanks

1 REPLY
Cisco Employee

Re: CSM servers in different routers

just apply normal routing principle and consider the csm as a nating device.

So, when your client comes into the csm for a VIP, the csm will replace the vip address with a server ip address and then forward the traffic to the server using the csm routing table.

Therefore, you need a layer3 path between csm and server and configure a static route on the csm to reach the server subnet.

The problem will be to guarantee that the server responds back to the csm.

Don't forget the src will be the client ip and so the server might just forward the response directly to the client which won't work as the client expect a response from the vip not the server.

So, you may have to use policy routing for the returning traffic or nat the client ip on the csm as well with an ip belonging to the csm.

See client nat config example to do this.

Regards,

Gilles.

121
Views
0
Helpful
1
Replies
CreatePlease to create content