Forum Discussion
VIP to VIP Traffic
Dear Experts,
Anyone having idea on how to route traffic from one VIP to another VIP hosted on the same loadbalancers.
3 Replies
- Stephan_Mierau
Employee
Hi,
you could use the virtual statement in an irule and attache the irule to the vs.
- when HTTP_REQUEST {
- if { [HTTP::uri] contains "something" }
- {
- log local0. "internally routing from [virtual name] to (name of vs)"
- virtual (name of vs)
- }
- Kevin_Stewart
Employee
If I may add,
Isn't the same achieved without any iRule
Not really. You cannot pool to a VIP (at least not in the same route domain), so within a single route domain the only realistic way to pass traffic from one VIP to another is with VIP targeting in an iRule.
- Kevin_Stewart
Employee
Could you please help me to understand this iRiule
Certainly.
when HTTP_REQUEST { if { [HTTP::uri] contains "something" } { log local0. "internally routing from [virtual name] to (name of vs)" virtual (name of vs) } }What you're basically saying is that if an incoming HTTP request URI contains the string "something", pass the request to a different virtual server (by name).
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