F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Spidey_29396's avatar
Spidey_29396
Icon for Nimbostratus rankNimbostratus
Nov 26, 2014

SNAT Automap or SNAT pool for Outbound load balancing of 2 ISPs

Hi All,

 

I have 2 ISPs, in order to have outbound load balancing, i created virtual server 0.0.0.0:any performance layer 4 and with 2 pool members(ISP1 and ISP2), now i need to use SNAT so i chose SNAT automap.

 

for example: ISP1 router - 1.1.1.1 ISP2 router - 2.2.2.1 Self IP1 - 1.1.1.2 Selfp IP2 - 2.2.2.2

 

now what if ISP1 went down, if i configured SNAT automap, will it only choose Selfp IP2?

 

3 Replies

  • R_Marc's avatar
    R_Marc
    Icon for Nimbostratus rankNimbostratus

    In my experience, automap selects any available self IP. I think you'll need to use two separate SNAT pools. You might have to do it in an iRule, so when an LB decision is made, you apply the SNAT pool.

     

    Not sure if this is an option, but if you have your own IP space, BGP session with the ISPs would probably work better for you (if you have dynamic routing on your BigIP and your ISPs are willing to do BGP with you).

     

    • R_Marc's avatar
      R_Marc
      Icon for Nimbostratus rankNimbostratus
      Based on the info provided:
      when LB_SELECTED {
        if { [IP::addr [LB::server addr] equals 1.1.1.3 ] } {
      
           Apply a snat
          snat VIPsnat1
        } else { snat VIPsnat2 }
      }