Simple load balancing with bigip

Lab information
2x DVWA servers in vmnet3
1x Lubuntu client in vmnet5
Use round robin as load balancing method.
DVWA has a login page, hence enable persistence source address.
Enable health monitor for the DVWA servers.

Create DVWA pool
DVWA has two servers namely and .131

root@(bigip1)(cfg-sync Standalone)(Active)(/Common)(tmos)# /ltm pool
root@(bigip1)(cfg-sync Standalone)(Active)(/Common)(tmos.ltm.pool)# create dvwa members add { } load-balancing-mode round-robin description "DVWA server pool"

Here we create two server pools that listen to http and chose the round robin as the load balancing method.


Create virtual server to answer Lubuntu’s request

root@(bigip1)(cfg-sync Standalone)(Active)(/Common)( /ltm virtual
root@(bigip1)(cfg-sync Standalone)(Active)(/Common)(tmos.ltm.virtual)# create dvwa source destination profiles add { fastL4 } pool dvwa ip-protocol tcp persist replace-all-with { source_addr }

Here I configured the expected source address which I put vmnet5 subnet, and also the destination server which was the selfip which i created.

I also attached the dvwa pool and enabled source address persistence.

What this persistence does is to ensure the same source address always hit the same server within a session.

Do a save configuration before testing.
root@(bigip1)(cfg-sync Standalone)(Active)(/Common)(tmos.ltm.virtual)# save /sys config
Saving running configuration...
Saving Ethernet mapping...done


dvwa login.png

dvwa login success.png

dvwa try.png

Enable health monitor for DVWA pool

Before the health monitor is enabled, the status of the virtual server is unknown.

before health monitor.png

The following command line enables the health monitor.

root@(bigip1)(cfg-sync Standalone)(Active)(/Common)(tmos)# /ltm monitor
root@(bigip1)(cfg-sync Standalone)(Active)(/Common)(tmos.ltm.monitor)# create http dvwa-monitor username admin password password

I created a http monitor known as dvwa-monitor from the http monitor template, I added the username and password of the DVWA.

root@(bigip1)(cfg-sync Standalone)(Active)(/Common)(tmos.ltm.monitor)# /ltm pool
root@(bigip1)(cfg-sync Standalone)(Active)(/Common)(tmos.ltm.pool)# modify dvwa monitor dvwa-monitor description "To monitor DVWA status"
root@(bigip1)(cfg-sync Standalone)(Active)(/Common)(tmos.ltm.pool)# save /sys config

after health monitor.png

pool after monitor.png


2 thoughts on “Simple load balancing with bigip

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s