Forum Discussion

ASF's avatar
ASF
Icon for Altocumulus rankAltocumulus
Jun 15, 2020

http traffic shift to a VIP in another LTM

Hi I am a newbie in irule development. Despite that I have to deploy an irule that redirects http traffic to a vs placed in another LTM device.   SetUp details:   Clients reach www.mypage.c...
  • msenturk's avatar
    Jun 15, 2020

    Hi,

     

    If I understand right both VIP uses same host name so you can try like that

    Create pool on LTM-A like LTM_B_VIP and set node IP with VIP of vs_aaa.bbb.ccc.xxx_80

     

    when CLIENT_ACCEPTED { 

    set def_pool [LB::server pool]

    if { [class match [IP::remote_addr] equals customer_migrated] } { 

      pool LTM_B_VIP

    } else { 

    pool $def_pool

    }

    }