Forum Discussion

f5Thesis_159252's avatar
f5Thesis_159252
Icon for Nimbostratus rankNimbostratus
May 30, 2014

BigIP virtual Edition - correct network configuration for load balancing

Hi There,

 

I am trying to setup HTTP Load Balancing with F5 BIG IP VE 90 days Evaluation license. I have two apache http servers at my host machine which are inside lxc containers and connected to lxcbr0. My lxcbr0 has inet Adresse:10.0.3.1 Bcast:10.0.3.255 Maske:255.255.255.0. The management ip of my F5 is 192.168.100.154. My http1 is at 10.0.3.214 and http2 is at 10.0.3.96. I can ping both http servers from the commandline of my f5 virtual machine.

 

My goal is to setup a load balancing scenario where traffic is load balanced round robin between both http servers. I did the following steps up to now: * I have created a pool at the web UI of f5: Local Trafic --> Pools --> Pool List --> Create: I have created a ppol, which name "http_pool", added the two http server IPs as pool members, configured as round robin and set an http health monitor to "active". * I have created a virtual server via Local Traffic --> Virtual Server --> Virtual Server List --> Create: with name virtServer1 and Destination --> Type --> Host --> Address 192.168.200.100. * Additionally I have created an IRULE with the following definition: when HTTP_REQUEST { pool Apache_testgroup } I don't know if I really need this IRULE as I am not ver familar with IRULES at this moment (still investigating in learning...).

 

My understanding is that I should reach my http servers now load balanced via the IP address of my virtual server (192.168.200.100) via the browser of my host machine. But that doesn't wprk. I read several tutorials, but I can't figure out what the problem is.

 

It would be nice if anyone could help me. I think it is a simple setup and normally this sould be straight forward.

 

1 Reply

  • Hello,

     

    First, you don't need an iRule to assign a pool to a virtual-server. You just need to assign your pool in the virtual-server config Ressource -> Default Pool.

     

    To access you virtual-server:

     

    • Is the virtual-server UP? Green ball before its name.
    • Is the network 192.168.200.0/24 connected to your F5?
    • If not, do you have a route for 192.168.200.100 pointing to the F5's floating IP?
    • If the VIP is active on the same network as the two apache server, did you enable SNAT? (in virtual-server config)

    Best regards,

     

    Christophe