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

ACE load balance port range to backend range?

jchetta09
Level 1
Level 1

I am looking to (as simply as possible) create a VIP (Virtual Server IP) that can accept traffic on multiple ports, and also load balance to the same real servers on multiple ports.  For example:

1.1.1.1 is the VIP, which load balances 10.50.100.1, 10.50.100.2, and 10.50.100.3 (in a farm)

So I want traffic to be able to come in on 1.1.1.1 TCP 80 and redirect to those 3 in the farm on port 80.

I also want it to be able to be done for port 81-90 and redirect to those 3 on the same respective port (1.1.1.1:81-->FARM:81, 1.1.1.1:85--->FARM:85 for example).  Right now the only way I can see to do this is to create multiple VIPs on different ports, since the farm requires ports to be defined.  Can someone clarify if this is possible?

1 Reply 1

ciscocsoc
Level 4
Level 4

Hi,

Not sure why you need ports defining on the serverfarm.  You should be able to do this;

class-map match-any L4VIPCLASS-80-90
  1 match virtual-address 1.1.1.1 tcp eq 80
  2 match virtual-address 1.1.1.1 tcp eq 81
  3 match virtual-address 1.1.1.1 tcp eq 82
  4 match virtual-address 1.1.1.1 tcp eq 83
...

If you create a serverfarm but do not add the port to the definition, E.g

serverfarm host FARM-WSProd
  failaction purge
  probe PROBE-WSPROD
  rserver wsprod1
    inservice
  rserver wsprod2
    inservice
  rserver wsprod3
    inservice
  rserver wsprod4
    inservice

Then the traffic will be sent to the server on the same port it came in on.

Cathy