Forum Discussion

Gazzu's avatar
Gazzu
Icon for Nimbostratus rankNimbostratus
Jun 02, 2017

How to configure LTM Virtual Servers with same IP address , port but different ports (8000 to 8007) on pool members (containing three servers).

How to configure LTM Virtual Servers with same IP address and same port i.e. http but different ports (8000 to 8007) on pool members (containing three servers).

 

F5 VIP IP 10.10.10.1:80abc-p1.qm.com8007 10.10.10.1:80abc-p2.qm.com8006 10.10.10.1:80abc-deve.qm.com8005 10.10.10.1:80abc-syst.qm.com8004 10.10.10.1:80abc-intg.qm.com8003 10.10.10.1:80abc-acpt.qm.com8002 10.10.10.1:80abc-emer.qm.com8001 10.10.10.1:80abc.qm.com8000

 

App server IP addresses: 10.10.10.10, 10.10.10.11, 10.10.10.12

 

2 Replies

  • Gazzu's avatar
    Gazzu
    Icon for Nimbostratus rankNimbostratus

    F5 VIP IP

     

    10.10.10.1:80abc-p1.qm.com 8007

     

    10.10.10.1:80abc-p2.qm.com8006

     

    10.10.10.1:80abc-deve.qm.com8005

     

    10.10.10.1:80abc-syst.qm.com8004

     

    10.10.10.1:80abc-intg.qm.com8003

     

    10.10.10.1:80abc-acpt.qm.com8002

     

    10.10.10.1:80abc-emer.qm.com8001

     

    10.10.10.1:80abc.qm.com8000

     

  • Hi Guy,

    Firstly create your 8 pools, give them names like those:
    pool pool_abc-p1.qm.com {
       monitor all tcp
       members {
          10.10.10.10:8007 {}
          10.10.10.11:8007 {}
          10.10.10.12:8007 {}
       }
    }
    pool pool_abc-p1.qm.com {
       monitor all tcp
       members {
          10.10.10.10:8006 {}
          10.10.10.11:8006 {}
          10.10.10.12:8006 {}
       }
    }
    pool pool_abc-deve.qm.com {
       monitor all tcp
       members {
          10.10.10.10:8005 {}
          10.10.10.11:8005 {}
          10.10.10.12:8005 {}
       }
    }
    pool pool_abc-syst.qm.com {
       monitor all tcp
       members {
          10.10.10.10:8004 {}
          10.10.10.11:8004 {}
          10.10.10.12:8004 {}
       }
    }
    pool pool_abc-intg.qm.com {
       monitor all tcp
       members {
          10.10.10.10:8003 {}
          10.10.10.11:8003 {}
          10.10.10.12:8003 {}
       }
    }
    pool pool_abc-acpt.qm.com {
       monitor all tcp
       members {
          10.10.10.10:8002 {}
          10.10.10.11:8002 {}
          10.10.10.12:8002 {}
       }
    }
    pool pool_abc-emer.qm.com {
       monitor all tcp
       members {
          10.10.10.10:8001 {}
          10.10.10.11:8001 {}
          10.10.10.12:8001 {}
       }
    }
    pool pool_abc.qm.com {
       monitor all tcp
       members {
          10.10.10.10:8000 {}
          10.10.10.11:8000 {}
          10.10.10.12:8000 {}
       }
    }
    

    then add this simple iRule to your VS:
    when HTTP_REQUEST {
    set pool_name "pool_[HTTP::host]"
    pool $pool_name
    }