Forum Discussion

jespjens_42843's avatar
jespjens_42843
Icon for Nimbostratus rankNimbostratus
May 05, 2008

Source IP routing from external server

 

 

 

---------------- ------------------

 

Source 1 Source 2

 

---------------- ------------------

 

| |

 

VLAN X |

 

| VLAN X

 

| |

 

---------------------------------------------------

 

- 10.10.10.1 virtual server 1 10.10.10.2 = virtual server 2

 

- F5 LTM -

 

- 172.18.10.1 +.2 172.18.10.3 +.4 (internal)

 

- -

 

---------------------------------------------------

 

| |

 

VLAN A VLAN A

 

| |

 

server 1+2 server 3+ 4

 

 

Loadsharing from virtual server 1 goes to server 1+2

 

Loadsharing from virtual server 2 goes to server 3+4

 

Case is that we would like to be able to make source routing from e.g. source 2 by first going with request from this source to virtual server 1 (old known address for them) and then route requests and answers to the virtual server 2 that load balance with to different servers that the ones connected with the first server. It is to make changes internally transparent and invisible from servers connecting to the old virtual server 1. Virtual server 2 will be visible and used for new connecting servers.

 

Any suggestion for implementation of this ?

 

4 Replies

  • Hi!!

     

     

    So you've got some people pointing to virtual server 1 and some other (the new connections) pointing to virtual server 2. And you'd like to forward connections to VS 1 to the servers 3+4 without forcing the external servers to change the address to VS 2, right?

     

     

    well, you can do it by choosing the load balancing pool based on the client IP address. If the client IP address belongs to some IP network, then use this other pool.

     

     

    Is that right? If so, We'd be glad to help.

     

    Regards.

     

  • Hi, This is the set-up and intended setup. Note that some will still go to server 1 and loadbalance on server 1+2. So it is only for a selected number of IP addresses that we should do this routing. BR Jesper
  • As I said, you don't need to force a redirection to the new virtual IP address,

     

     

    you can do it this way:

     

     

    when CLIENT_ACCEPTED {

     

    if { [IP::addr [IP::client_addr] equals 10.10.10.10] } {

     

    pool my_pool

     

    }

     

    }

     

     

    http://devcentral.f5.com/Wiki/default.aspx/iRules.IP__addr

     

     

    BR