Forum Discussion

drhawkings_2156's avatar
drhawkings_2156
Icon for Nimbostratus rankNimbostratus
Jul 28, 2010

How to configure F5 LC virtual server based on source IP address?

Anyone has experience configuring these? Greatly appreciate!

 

1)Certain source IPA (10.4.2.1,192.168.1.4) will use a new gateway pool (Gateway99)

 

2)Certain sourec IPB (172.5.5.5) will use new gateway pool (Gateway99) and default gateway pool(only when Gateway99 is down)

 

 

Thanks guys!

 

2 Replies

  • Hi Dr,

     

     

    Do the clients come into the LC on separate VLANs? If so, you could create separate network virtual servers and enable them on the individual VLANs you want them to accept inbound traffic for. You could configure a separate gateway pool for the second VS which has the gateway99 pool members at a higher priority and the default gateway pool members at a lower priority.

     

     

    If separate ingress VLANs isn't an option, then I think you'd need to use an iRule to select the pool based on client IP address/network.

     

     

    If either options sounds suitable and you want more detailed suggestions, let us know.

     

     

    Aaron
  • The incoming traffic can be from any vlan. The selected traffic will be based on source IP address. How to configure that using irule? Default gateway has 2 members A & B

     

     

    1)Source IP 10.7.3.1(private IP) will be SNAT to 202.44.44.77(public IP) & will be using gateway 202.55.55.66.

     

    2)Source IP 10.7.4.0(Private IP) will be using the interface C pointing to gateway pool C=202.55.55.66. In this case, it will use the self-IP (public IP) configured in interface C.

     

    3)same as 2) but when gateway pool C is down, it will use the default gateway(which is load-balancing btw link to A & B).