FortiOS 5.6 Online Help Link FortiOS 5.4 Online Help Link FortiOS 5.2 Online Help Link FortiOS 5.0 Online Help Link

Home > Online Help

Example Basic IP load balancing configuration

This example shows how to add a server load balancing virtual IP that load balances all traffic among 3 real servers. In the example the Internet is connected to port2 and the virtual IP address of the virtual server is The load balancing method is weighted. The IP addresses of the real servers are,, and The weights for the real servers are 1, 2, and 3. The default weight is 1 and does not have to be changed for the first real server.

config firewall vip

edit All_Load_Balance

set type server-load-balance

set server-type ip

set extintf port2

set extip

set ldb-method weighted

config realservers

edit 1

set ip


edit 2

set ip

set weight 2


edit 3

set ip

set weight 3