Forum Discussion

CarlT's avatar
CarlT
Icon for Altostratus rankAltostratus
Dec 16, 2019

Can you have multiple instances of the same vip ?

Hi All

Can you have multiple instances of the same vip ? could you use the same VIP for 2 different pools as long as the port etc is different?

4 Replies

  • InnO's avatar
    InnO
    Icon for Nimbostratus rankNimbostratus

    Can you have multiple instances of the same vip ? No, you can't.

     

    Could you use the same VIP for 2 different pools as long as the port etc is different? Sure you can. You can forward your traffic to any pool you need to, based on some criteria of your choice (port, source ip, host header, etc...). You would have to create an iRule though or use a HTTP policy, as the GUI just lets use specify one pool.

     

    • CarlT's avatar
      CarlT
      Icon for Altostratus rankAltostratus

      Hi There, thanks for the reply,

      what would the irule look like for this?

      cheers

    • CarlT's avatar
      CarlT
      Icon for Altostratus rankAltostratus
      Can you give me an example of how you would do it?Can you specify different listening ports? Do people do it often ?Would you still have to create the second pool in the gui first ? Sent from Yahoo Mail for iPhone
      • Abed_AL-R's avatar
        Abed_AL-R
        Icon for Cirrostratus rankCirrostratus

        Hi there

        for example, irule selecting pool based on HTTP Path:

        when HTTP_REQUEST {
         
            switch -glob [string tolower [HTTP::path]] {
                
                "/oauth*" {
                    pool Pool_1
        			 }
                "/lmsserver*"
                 {
                  pool Pool_2 
                }
                "/admin*" {
                    pool Pool_3
                }
            }
        }