config link-load-balance : config link-load-balance link-group
 
config link-load-balance link-group
Use this command to configure link groups.
Link groups include ISP gateways your company uses for outbound traffic. Grouping links reduces the risk of outages and provisions additional bandwidth to relieve potential traffic congestion.
The link group configuration specifies the load balancing algorithm and the gateway routers in the load balancing pool. You can enable LLB options, such as persistence rules and proximity routes.
Before you begin:
You must have configured gateway links and persistence rules and before you can select them in the link group configuration.
You must have read-write permission for link load balancing settings.
After you have configured a link group configuration object, you can select it in the link policy configuration.
Syntax
config link-load-balance link-group
edit <name>
set addr-type ipv4
set persistence <datasource>
set proximity-route {enable|disable>
set route-method {consistent-hash-ip | least-connection | least-new-cps | least-throughput-all | least-throughput-in | least-throughput-out | spillover-throughput-all | spillover-throughput-in | spillover-throughput-out | wrr>
next
end
addr-type
Only IPv4 is supported.
persistence
Specify a persistence configuration. Optional.
proximity-route
enable—The system uses the proximity route logic and configuration when determining routes.
disable—The system does not use the proximity route configuration.
route-method
consistent-hash-ip: Selects the gateway link based on a hash of the source IP address.
least-connection: Dispatches new connections to the link member with the lowest number of connections.
least-new-cps: Dispatches new connections to the link member that has the lowest rate of new connections per second.
least-throughput-all: Dispatches new connections to the link member with the least total traffic (that is, inbound plus outbound).
least-throughput-in: Dispatches new connections to the link member with the least inbound traffic.
least-throughput-out: Dispatches new connections to the link member with the least outbound traffic.
spillover-throughput-all: Spillover list based on total traffic (that is, inbound plus outbound).
spillover-throughput-in: Spillover list based on inbound traffic.
spillover-throughput-out: Dispatches new connections according to the spillover list based on outbound traffic.
wrr: Dispatches new connections to link members using a weighted round-robin method.
Example
FortiADC-VM (link-group) # edit llb-link-group
Add new entry 'llb-link-group' for node 618
 
FortiADC-VM (llb-link-group) # get
addr-type : ipv4
route-method : wrr
persistence :
proximity-route : disable
 
FortiADC-VM (llb-link-group) # config link-member
 
FortiADC-VM (link-member) # edit 1
Add new entry '1' for node 624
 
FortiADC-VM (1) # get
gateway :
weight : 1
spillover-priority : 0
status : enable
 
FortiADC-VM (1) # set gateway llb-gateway
FortiADC-VM (1) # end