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?

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.

Hi There, thanks for the reply,

what would the irule look like for this?

cheers

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

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
        }
    }
}