Forum Discussion
tyler_94987
Nimbostratus
Mar 28, 2009LC ISP load balancing with SNAT question
Hi All.
My customer is using LC1600 v9.4.5 to do ISP LB.
They have multiple ISPs within a data center. Each ISP has their own gateway and different ip subnet.
I configure two vlans on 1600: external and internal. And add all ISP ip on external, private ip on internal.
Say if there are only 2 isps. I will need to add 2 VS to map to one server pool. And customer needs those servers to do SNAT with VS ip. That is, server can use VS ip to access to internet.
Customer has almost 200 server pools. And each ISP has almost 200 VS. And worse, I have to configure SNAT pool for each server pool to use their own SNAT pool. So I need to configure a lot of things on 1600...
My question is, for SNAT part. Is there any better way like writing an iRule to tell if this is from server pool then I will do SNAT for it with VS ip address?
And I am wondering if SNAT pool will know when do SNAT for the correct ISP?
- The_Bhattman
Nimbostratus
Well a combination of a looking at the remote IP or the server IP you can choose which SNAT to use and which one you don't have to. - tyler_94987
Nimbostratus
cmbhatt thanks for your reply.when LB_SELECTED { if { ([LB::server addr] eq "1.1.1.254") and ([matchclass [IP::client_addr] equals $::ip_server]) } { snat 1.1.1.X } else if { ([LB::server addr] eq "2.2.2.254") and ([matchclass [IP::client_addr] equals $::ip_server]) } { snat 2.2.2.X } }
- The_Bhattman
Nimbostratus
If you have version 9.4 or higher then I believe you can direct the request to a virtual - tyler_94987
Nimbostratus
Hi cmbhatt. - The_Bhattman
Nimbostratus
Based on what I am reading you want a each server assigned 2 possibles from a snat block of 1.1.1.x or 2.2.2.x (depending on which path it takes) and from the details you explained you want to match it up by the last octet of the IP. From what I can tell this can be done on a smaller scale, but 200 internal servers will make for a - dennypayne
Employee
Posted By tylerchen on 03/28/2009 9:30 AM
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects