Forum Discussion
Load Balancing over two links
Hi guys,
I am sure what i am about to ask has already been discussed here. I have two internet links terminated on GTM and I have a Wild card Virtual Server taking the traffic to internet. I have two proxy servers sitting inside my network and I want one Proxy to utilize one ISP link and the other to utilize the other link and in case of failure of one of the links all the web traffic of that link should go via the second link. Can someone help me with an irule to achieve this.
Regards,
24 Replies
- What_Lies_Bene1
Cirrostratus
Can I suggest an alternative approach. Configure two virtual servers and two pools. Configure priority group activation for each pool with the 'active' server being the link you want to use, but reversed for the second pool. Then point proxy 1 at virtual server 1 and proxy 2 at virtual server 2. No need for an irule, persistence or anything complex. Does this make sense? - Techgeeeg
Nimbostratus
That I was thinking to do... but like right now I have one wildcard virtual server for all out going traffic. Now in the case that you are asking to do I will configure the Pool with priority group activation but what about the Virtual Server... I can't configure same Virtual Server multiple times also on the Wild card virtual server I have an Irule that map the Proxy private IP to a particular public IP pool using an snat pool.
Correct me if i am not thinkiing of it correctly.
Regards, - Mohamed_Lrhazi
Altocumulus
I never used this but it sounds like you you might be asking about nexthop command: https://devcentral.f5.com/wiki/iRules.nexthop.ashx - What_Lies_Bene1
Cirrostratus
Yes sorry Techgeeeg, I didn't take that into account. Mohamed's suggestion seems workable if you mix it with a check that the pool member is available first and if not, use the other IP. - Techgeeeg
Nimbostratus
Hi Mohamed,
Thanks for the link but that is not going to help that easily.... any other input guys.... pls someone help out...
Regards, - Michael_Yates
Nimbostratus
Do you have any other criteria that you could use to determine which ISP to use?
If each ISP is connected to a different Interface on the BIG-IP then you could use something like a Route Domain.
If not then you might want to see if a Traffic Class could be configured to do what you are needing. - Techgeeeg
Nimbostratus
Hi Michael,
I have these two ISP links configured on the two different physical interfaces on the GTM. I have wildcard virtual server configured so how can i achieve this requriement. I am sure someone must have come up with such requriement and if not then is there any document showing how this can be achieved.
Regards, - What_Lies_Bene1
Cirrostratus
Can you not switch the Virtual Server to be a Performance (Layer 4) VS so you can assign a pool. Then you can leave it round robin and make use of both links or mix in some source IP address persistence so one proxy uses one link and the second the other, although you won't be able to control which. - Techgeeeg
Nimbostratus
Hi,
Yes I have performance layer4 VS and it uses default gateway pool as the pool but the situation is very different. I not only have proxy servers that are being mapped to a particular Public IP via SNAT pool and irule but there are many other services whos private IP is converted to a public IP using irule. Now in this situation I have to come up with some thing extra for Proxy server IP's only...
Regards, - What_Lies_Bene1
Cirrostratus
OK, I'm becoming increasingly confused by your requirements and restrictions I'm afraid. Why is the nexthop command not viable? Why can't you configure a more specific virtual server that just the proxies use?
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