Forum Discussion
baekbu07_154640
Nimbostratus
Aug 12, 2014[iRule, URLSLB] How to change destination ip address(VIP).
I have been using the URI as below.
URI_1 : http://www.aaa.com, This IP(VIP) is "1.1.1.1". This VIP have two pool member(M1, M2).
URI_2 : http://www.bbb.com, This IP(VIP) is "2.2.2.2". Thi...
IheartF5_45022
Nacreous
Aug 13, 2014To answer your question as you asked it - assume you have.....
a virtual vs_www.aaa.com_http with pool pl_www.aaa.com_http, and a virtual vs_www.bbb.com_http with pool pl_www.bbb.com_http
when HTTP_REQUEST {
This iRule is applied to vs_www.aaa.com_http
if {[HTTP::path] eq "/test"} {
Divert to other virtual
virtual vs_www.bbb.com_http
}
}
Note that once the destination is NATed to 2.2.2.2, sent to the 2nd VIP, and a pool member chosen, the destination address will again be NATed to either M3 or M4, so I'd agree with afedden that you are better off selecting the final pool directly from the first VIP ie
when HTTP_REQUEST {
This iRule is applied to vs_www.aaa.com_http
if {[HTTP::path] eq "/test"} {
pool pl_www.bbb.com_http
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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