Forum Discussion
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
Nimbostratus
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).
- Spidey_29396
Nimbostratus
Hi R Marc,
what should the iRule looked liked?
Thanks! Ferdz
- R_Marc
Nimbostratus
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 } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com