The "set aggregate-member" command is typically used to configure load balancing or link redundancy for physical interfaces on a FortiGate device. However, it cannot be used directly with IPSec tunnels.
IPSec tunnels are virtual connections that are established between two endpoints to securely transmit data. They are not physical interfaces, so they cannot be added as members of an aggregate interface.
Instead, you can use the "set load-balance" command to configure load balancing for IPSec tunnels. This command allows you to distribute the traffic across multiple tunnels, based on the source IP address, destination IP address, or both. The syntax for the command is as follows:
config vpn ipsec phase1-interface
edit <tunnel_name>
set load-balance enable
set src-addr-type <src_addr_type>
set dst-addr-type <dst_addr_type>
end
end
<tunnel_name> is the name of the IPSec phase 1 interface you want to configure.
set load-balance enable enables load balancing for the tunnel.
<src_addr_type> and <dst_addr_type> specify the type of load balancing to use. You can choose from "ip", "subnet", or "any".
For example, the following command enables load balancing for the IPSec tunnel named "tunnel1", using the source and destination IP addresses:
config vpn ipsec phase1-interface
edit tunnel1
set load-balance enable
set src-addr-type ip
set dst-addr-type ip
end
end
You can also use the "set load-balance per-session" command to enable per-session load balancing for IPSec tunnels. This allows you to distribute the traffic across multiple tunnels based on the session ID.
Please note that the above examples are just one of the possibilities and the actual command may vary depending on the specific configuration of your FortiGate device.
It's also important to note that, load balancing for IPsec tunnels is not always recommended, as it can introduce additional complexity and potential issues with route-based VPNs, NAT and other features. It's recommended to consult Fortinet documentation or a network professional before configuring load balancing for IPsec tunnels.