config load-balance real-server
Use this command to configure real servers. Real servers are physical servers that are used to form real server pools. These dedicated servers provide clients with services such as HTTP or XML content, streaming audio or video, TFTP/FTP uploads and downloads, etc. You can start configuring a real server by giving it a unique configuration name, setting its status, and specifying its IP address.
After you have created your real server configuration objects, you can select them as members to form real server pools. At that stage, further configurations are needed as discussed in config load-balance pool.
Syntax
config load-balance real-server
edit <name>
set server-type {static|dynamic_manual}
set status {enable|disable|maintain}
set type {ip|fqdn|fqdn_populate_more}
set ip <ipv4-netmask>
set ip6 <ipv6-netmask>
set fqdn <string>
set auto_populate {enable|disable}
set auto_populate_from <string>
set sdn-connector <datasource>
set instance <string>
next
end
server-type |
Select the real server type:
|
status |
Select one of the options:
|
type |
The type option is available if the server-type is static. Select the static server type to use for DNS resolution:
|
ip |
The ip option is available if the server-type is static and the type is ip. For IPv4 real server, enter the real server's IP address in IPv4 address format. |
ip6 |
The ip6 option is available if the server-type is static and the type is ip. For IPv6 real server, enter the real server's IP address in IPv6 address format. |
fqdn |
The fqdn option is available if the server-type is static and the type is fqdn or fqdn_populate_more. Specify a fully qualified domain name, such as "www.example.com". This is required. |
auto_populate |
The auto_populate field appears if the server-type is static and the type is fqdn_populate_more.
|
auto_populate_from |
The auto_populate_from field is read-only and appears if the current real server was auto-generated by the system through FQDN Populate More function. The auto-populate more field shows the Real Server name from which the auto-generated real servers will be based on. The auto-generated real server names will appear in the following format: Real Server Name_\d\d_random number For example: If the Real Server Name is "xxx", then the name of the auto-generated real server can be "xxx_01_69104274032". |
sdn-connector |
The sdn-connector is available if the server-type is dynamic_manual. Specify a previously configured SDN Connector. |
instance |
The instance is available if the server-type is dynamic_manual. Specify the instance of your SDN Connector. |
Examples
Static Server IP
config load-balance real-server
edit "static_ip"
set server-type static
set status enable
set type ip
set ip 0.0.0.0
set ip6 ::
next
end
Static Server FQDN
config load-balance real-server
edit "static_fqdn"
set server-type static
set status enable
set type fqdn
set fqdn www.example.com
next
end
Static Server FQDN Populate More
config load-balance real-server
edit "static_auto"
set server-type static
set status enable
set type fqdn_populate_more
set fqdn rs1.fortiadc.com
next
end
FortiADC (root) # show load-balance real-server
config load-balance real-server
edit "static_auto_01_65874123657"
set server-type static
set type fqdn_populate_more
set fqdn rs1.fortiadc.com
set auto_populate enable
set auto_populate_from static_auto
next
end
Dynamic Manual Server
config load-balance real-server
edit dynamic_manual
set server-type dynamic_manual
set status enable
set sdn-connector aws_connector
set instance aws_fadc
next
end