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.
The BigIP acts as a proxy. So you can debug it at both the bigip/client and bigip/server side to see whats happening.
If you tcpdump both sides, what do you see? Does the connection between client and bigip succeed? Do you see the request come from the client? (I usually test using telnet for this point as browsers just get in the way at this level).
If that all looks OK, what do you see at the server side? Does BigIP open a connection to the server? Is the request passed through?
Are you seeing any errors in /var/log/ltm? Perhaps your client is using HTTP methods not supported by the HTTP profile?
This all assumes of course that your pool and poolmembers are marked as available by your pool monitor already…
Thanks for the answer. Being new user of F5, I could not get lots of things which you asked. Can you please let me know how I can do tcpdump in both sides ?
I used telnet command to see whether I am able to connect virtual server IP with port, but I could not succeed. And that the reason I am thinking that Virtual server which I created is not accessible at all.
it is up to you, but perhaps you should start with something simpler then.
one virtual server (standard) listening on port 80 (HTTP), one pool with one member also on port 80. not special profiles, just the basic and go from there.
then see if you can browse to the virtual server and get the website of the pool member to show up.
for tcpdump on both sides you can use the interface 0.0, so:
tcpdump -i 0.0 -nn
if that causes to much traffic you could use it with a filter, but then you need to use both the virtual server ip and the nodes.
As I said earlier that my virtual server is not responding at all because when I use telnet command with virtual server ip and port its refusing the connection saying no route to host.
Let me tell all the things which I done till now. * Download F5 Big-IP LTM VE trial version * Running F5 via VMPlayer (VMPlayer is installed on my machine). * In console window of F5, I used command “config” and then set the IP address of f5. * Now I can access admin console from Browser. * After admin/admin credential, I created pool / members etc.. * Now last thing remaining is to create new virtual server. * As a lemon person: in Destination side I selected Type as Host and gave new random IP (111.111.111.100) with Service port as 80:HTTP * Everything looks good and I can see Green signal in Availability side
Now I back to my VMPlayer console and try to use telnet command to access new virtual server IP (111.111.111.100) with port.
As I am not a sysadmin person but I want to try F5 for evaluation purpose. And I am pretty much sure that creation of virtual server has some problem.
If we create virtual server with random IP (111.111.111.100), What all other things need to be consider ? I thought that I can give any random number because one of the f5 LAB video, I observed this.
you have to consider being able to reach the F5 on the virtual server IP and the F5 being able to reach the pool members. i’m not sure how VMPlayer handles this, the LTM VE will probably choose interfaces it connects with for an external and internal network and management, but how exactly i don’t know.
did you follow any documentation for setting it up you can share?
Is there any way to change the netmask ? In general I am using netmask 255.255.254.0
you can use modify ltm virtual command. please make sure translate-address is enabled (i.e. it will translate destination ip to pool member ip). also, you may have to enable arp on network virtual address.
e.g.
root@ve10(Active)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.19.252:http
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
snat automap
}
root@ve10(Active)(tmos) modify ltm virtual bar destination 172.28.18.0:80 mask 255.255.254.0 translate-address enabled
root@ve10(Active)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.18.0:http
ip-protocol tcp
mask 255.255.254.0
pool foo
profiles {
http { }
tcp { }
}
snat automap
}
root@ve10(Active)(tmos) list ltm virtual-address 172.28.18.0
ltm virtual-address 172.28.18.0 {
arp disabled
mask 255.255.254.0
}
root@ve10(Active)(tmos) modify ltm virtual-address 172.28.18.0 arp enabled
root@ve10(Active)(tmos) list ltm virtual-address 172.28.18.0
ltm virtual-address 172.28.18.0 {
mask 255.255.254.0
}
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?
I am still thinking that there is something missing out in my configuration.
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.
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.
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 }