Forum Discussion
Virtual Server creation
Hello,
I am new to F5 and using the evaluation version of F5 (Big IP LTM Virtual Edition). I am facing problem while creating the virtual server for tomcat application.
F5 Big-IP LTM VE is running on VMPlayer. And I can access the admin page of F5 via https://>
I want to test F5 with 3 tomcat applications which are running as cluster. All my three tomcat instances are on same machine with different port. http://:8081//cluter-example/test.jsp http://:8082//cluter-example/test.jsp http://:8083//cluter-example/test.jsp I tested out successfully this cluster with Apache server.
As I do not have much idea as how to create Virtual server which will use my newly created pool which has all the three tomcat instances.
I tried to create Virtual server with following parameter: Type : host Address : some random IP address. Service port : 80 with HTTP VLAN and tunnel traffic : All VLAN and tunnel SNAT Pool : autoMap
Afterward I try to access the virtual server as http://>:80 And then getting nothing (I am expecting it should go to one of the tomcat instance) I tried with http://>:80/cluster-example/test.jsp but same result.
In Health monitor side I used Send String : GET /cluster-example/test.jsp
Please let me know what are the things I am missing and why given virtual IP with 80 port as HTTP... its not redirecting to tomcat application side.
-Sandeep
- Sandeep_Gupta_1Nimbostratus
I tried to change mask via modify command but got the same error.
[root@f5:Active] config tmsh
root@f5(Active)(tmos) list ltm virtual vs_http_sandeep
ltm virtual vs_http_sandeep { destination 172.29.0.251:http ip-protocol tcp mask 255.255.255.255 pool CCE-Tomcat_pool profiles { CCE-Tomcat_lan-optimized_tcp_profile { } } snat automap }
root@f5(Active)(tmos) modify ltm virtual vs_http_sandeep destination 172.29.0.251:80 mask 255.255.254.0 translate-address enabled
01070348:3: Virtual Server vs_http_sandeep destination 172.29.0.251 and netmask 255.255.254.0 are not valid.
root@f5(Active)(tmos) modify ltm virtual vs_http_sandeep destination 172.29.0.251:80 mask 255.255.254.0
01070348:3: Virtual Server vs_http_sandeep destination 172.29.0.251 and netmask 255.255.254.0 are not valid.
Concerning the Network Interface for in and out, I do not know how to create.
When I opened "Network->Interface->Statistics" I can see there are 3 interfaces:
Name: mgmt Status: UP (I can Bits in and out, Packets in and out)
Name:1.1 Status:Uninitialized (No Bits and No Packets)
Name:1.2 Status:Uninitialized (No Bits and No Packets)
Above interface inherited from VMPlayer side as I can see 3 network adapters when I open VmPlayer ->Manage -> Virtual machines setting.
First Network Adapter : Bridge (Automatic) Second Network Adapter : Host Only Second Network Adapter : Host Only
- nitassEmployee
e.g.
root@ve10(Active)(tmos) list ltm virtual vs_http_sandeep ltm virtual vs_http_sandeep { destination 172.29.0.251:http ip-protocol tcp mask 255.255.255.255 pool CCE-Tomcat_pool profiles { CCE-Tomcat_lan-optimized_tcp_profile { } } snat automap } root@ve10(Active)(tmos) modify ltm virtual vs_http_sandeep destination 172.29.0.0:80 mask 255.255.254.0 translate-address enabled root@ve10(Active)(tmos) list ltm virtual vs_http_sandeep ltm virtual vs_http_sandeep { destination 172.29.0.0:http ip-protocol tcp mask 255.255.254.0 pool CCE-Tomcat_pool profiles { CCE-Tomcat_lan-optimized_tcp_profile { } } snat automap } root@ve10(Active)(tmos) modify ltm virtual-address 172.29.0.0 arp enabled root@ve10(Active)(tmos) list ltm virtual-address 172.29.0.0 ltm virtual-address 172.29.0.0 { mask 255.255.254.0 }
- Sandeep_Gupta_1Nimbostratus
I tried again now with changed destination address and new net mask and got the same error.
root@f5(Active)(tmos) modify ltm virtual vs_http_sandeep destination 172.29.0.252:80 mask 255.255.254.0 translate-address enabled
01070348:3: Virtual Server vs_http_sandeep destination 172.29.0.252 and netmask 255.255.254.0 are not valid.
Just to know you are also using the LTM VE 10.1.0.3341.1084?
Should I reinstall all the things I mean download the new copy of LTM VE 10.1.0.3341.1084 and then run it via VMPlayer ? I can not change version of LTM VE i.e 10.1.0.3341.1084 because its a trial.
-Sandeep
- nitassEmployee
01070348:3: Virtual Server vs_http_sandeep destination 172.29.0.252 and netmask 255.255.254.0 are not valid.
172.28.0.252 is not a network address...
- Sandeep_Gupta_1Nimbostratus
Ok I tried modifying another virtual server which has initial IP as 172.29.0.44 :
root@f5(Active)(tmos) list ltm virtual CCE-Tomcat_virtual_server
root@f5(Active)(tmos) modify ltm virtual CCE-Tomcat_virtual_server destination 172.29.0.50:80 mask 255.255.254.0 translate-address enabled 01070348:3: Virtual Server CCE-Tomcat_virtual_server destination 172.29.0.50 and netmask 255.255.254.0 are not valid.
Sorry for troubling lots !!!
-Sandeep
- nitassEmployee
the network address is 172.29.0.0/23.
(tmos) modify ltm virtual CCE-Tomcat_virtual_server destination 172.29.0.0:80 mask 255.255.254.0 translate-address enabled
you may have to enable arp on 172.29.0.0/23 virtual address. please make sure you understand its affect before enabling it.
(tmos) modify ltm virtual-address 172.29.0.0 arp enabled
- Sandeep_Gupta_1Nimbostratus
Ok its worked only when I used 172.29.0.0 but If I used 172.29.0.16 (as this IP is available for the moment) then got the same error. Strange. Anyway I went ahead and changed 172.29.0.0 with mask 255.255.254.0 and enabled arp as well. But accessing this VS IP via browser ... got the same error which I had earlier.
- nitassEmployee
But accessing this VS IP via browser ... got the same error which I had earlier.
can you post the virtual server and pool configuration?
tmsh list ltm virtual (virtual server name) tmsh list ltm pool (pool name)
- Sandeep_Gupta_1Nimbostratus
root@f5(Active)(tmos) list ltm virtual vs_http_sandeep
ltm virtual vs_http_sandeep { destination 172.29.0.0:http ip-protocol tcp mask 255.255.254.0 pool CCE-Tomcat_pool profiles { CCE-Tomcat_lan-optimized_tcp_profile { } } snat automap }
root@f5(Active)(tmos) list ltm pool CCE-Tomcat_pool
ltm pool CCE-Tomcat_pool { load-balancing-mode least-connections-member members { 172.29.1.51:tproxy { monitor CCE-Tomcat_monitor priority-group 1 state up } 172.29.1.51:us-cli { monitor CCE-Tomcat_monitor priority-group 1 state up } 172.29.1.51:us-srv { monitor CCE-Tomcat_monitor priority-group 1 state up } } monitor CCE-Tomcat_monitor }
- nitassEmployee
is there any specific reason you are using network virtual server (i.e. 172.29.0.0/23)? can you pick up one available ip address and setup host virtual server instead?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com