Fortinet black logo

CLI Reference

wanopt peer

wanopt peer

Use this command to add WAN optimization peers. This command identifies the other FortiGate units, or peers, that the local FortiGate can form WAN optimization tunnels with. When the remote FortiGate unit connects to the local FortiGate unit to start a WAN optimization tunnel, the remote FortiGate unit local host ID is requested. If the local host ID matches a peer added to the local FortiGate unit, then the local FortiGate unit can accept WAN optimization tunnel from the remote FortiGate unit.

config wanopt peer
    edit {peer-host-id}
    # Configure WAN optimization peers.
        set peer-host-id {string}   Peer host ID. size[35]
        set ip {ipv4 address any}   Peer IP address.
    next
end

Additional information

The following section is for those options that require additional explanation.

edit <peer_name>

Add the local host ID of the remote FortiGate unit. When the remote FortiGate unit connects to the local FortiGate unit to start a WAN optimization tunnel, the WAN optimization setup request include the remote FortiGate unit local host ID. If the local host ID in the setup request matches a peer added to the local FortiGate unit, then the local FortiGate unit can accept WAN optimization tunnel setup requests from the remote FortiGate unit.

ip <ipv4-address>

IP address of the interface that the remote FortiGate unit will use to connect to the local FortiGate unit — this is usually the interface connected to the WAN.

wanopt peer

Use this command to add WAN optimization peers. This command identifies the other FortiGate units, or peers, that the local FortiGate can form WAN optimization tunnels with. When the remote FortiGate unit connects to the local FortiGate unit to start a WAN optimization tunnel, the remote FortiGate unit local host ID is requested. If the local host ID matches a peer added to the local FortiGate unit, then the local FortiGate unit can accept WAN optimization tunnel from the remote FortiGate unit.

config wanopt peer
    edit {peer-host-id}
    # Configure WAN optimization peers.
        set peer-host-id {string}   Peer host ID. size[35]
        set ip {ipv4 address any}   Peer IP address.
    next
end

Additional information

The following section is for those options that require additional explanation.

edit <peer_name>

Add the local host ID of the remote FortiGate unit. When the remote FortiGate unit connects to the local FortiGate unit to start a WAN optimization tunnel, the WAN optimization setup request include the remote FortiGate unit local host ID. If the local host ID in the setup request matches a peer added to the local FortiGate unit, then the local FortiGate unit can accept WAN optimization tunnel setup requests from the remote FortiGate unit.

ip <ipv4-address>

IP address of the interface that the remote FortiGate unit will use to connect to the local FortiGate unit — this is usually the interface connected to the WAN.