Peers
When you configure peers, you first need to add the local host ID that identifies the FortiGate unit for WAN optimization and then add the peer host ID and IP address of each FortiGate unit with which a FortiGate unit can create WAN optimization tunnels.
To configure WAN optimization peers - GUI:
- Go to WAN Opt. & Cache > Peers.
- For Local Host ID, enter the local host ID of this FortiGate unit and select Apply. If you add this FortiGate unit as a peer to another FortiGate unit, use this ID as its peer host ID.
The local or host ID can contain up to 25 characters and can include spaces. - Select Create New to add a new peer.
- For Peer Host ID, enter the peer host ID of the peer FortiGate unit. This is the local host ID added to the peer FortiGate unit.
- For IP Address, add the IP address of the peer FortiGate unit. This is the source IP address of tunnel requests sent by the peer, usually the IP address of the FortiGate interface connected to the WAN.
- Select OK.
To configure WAN optimization peers - CLI:
In this example, the local host ID is named HQ_Peer
and has an IP address of 172.20.120.100
. Three peers are added, but you can add any number of peers that are on the WAN.
- Enter the following command to set the local host ID to
HQ_Peer
.config wanopt settings
set host-id HQ_peer
end
- Enter the following commands to add three peers.
config wanopt peer
edit Wan_opt_peer_1
set ip 172.20.120.100
next
edit Wan_opt_peer_2
set ip 172.30.120.100
next
edit Wan_opt_peer_3
set ip 172.40.120.100
end