Forum Discussion
Im not sure if I understand you correctly but you dont need any irule for that.
Create your vs, create a pool with correct loadbalancing method (least connection is my recommendation but) in your case its roundrobin, attatch it to your vs and your good to go.
If you need that under an existing vs you could do this with LTM Policy (preferred over irule). Just create a new LTM Policy with condition "if host header is production.company.id forward traffic to pool Pool_sta"
and your Pool_sta need the correct loadbalancing method.
I already try that, but because the domain of production.company.id have different ip with 172.16.1.10 and 11. It wont redirect and keep stuck with the ip of roduction.company.id. With this condition is still needed an iRules?
- P_KueppersOct 19, 2023MVP
I dont understand exactly what do you mean by the domain got different IPs? I though those IPs where ur pool members?
Normally you have your domain with dns records with one ip address of your bigip virtual server. So domain is pointing on bigip vs. There you can loadbalance with default pool or if you need multiple things loadbalancing to different pools you can do this with LTM Policy (or iRules but first would be preffered)