F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

MOHIT_125417's avatar
MOHIT_125417
Icon for Altostratus rankAltostratus
Feb 08, 2016

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

  • Hi,

     

    you could use the virtual statement in an irule and attache the irule to the vs.

     

    1. when HTTP_REQUEST {
    2. if { [HTTP::uri] contains "something" }
    3. {
    4. log local0. "internally routing from [virtual name] to (name of vs)"
    5. virtual (name of vs)
    6. }
  • 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.

     

  • 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).