Fortinet black logo

Cookbook

Configuring the SD-WAN interface

Configuring the SD-WAN interface

First, SD-WAN must be enabled and member interfaces must be selected. The selected FortiGate interfaces can be of any type (physical, aggregate, VLAN, IPsec, and others), but must be removed from any other configurations on the FortiGate.

In this step, two interfaces are configured and then selected as SD-WAN member interfaces. This example uses a mix of static and dynamic IP addresses; your deployment could also use only one or the other.

Once the SD-WAN interface is configured, it is referenced as SD-WAN in the GUI for static routes and firewall policies, and virtual-wan-link can be enabled in the CLI.

To configure SD-WAN members:
  1. Configure the wan1 and wan2 interfaces. See Interface settings for details.
    1. Set the wan1 interface Addressing mode to DHCP and Distance to 10.
      Note

      By default, a DHCP interface has a distance of 5, and a static route has a distance of 10. It is important to account for this when configuring your SD-WAN for 50/50 load balancing by setting the DHCP interface's distance to 10.

    2. Set the wan2 interface IP/Netmask to 10.100.20.1 255.255.255.0.
  2. Go to Network > SD-WAN and set Status to Enable.

    Routing for each SD-WAN interface is defined here.

  3. In the SD-WAN Interface Members table, click Create New.

  4. Select wan1 as the interface.
  5. As wan1 uses DHCP, leave Gateway as the default 0.0.0.0.

    If IPv6 visibility is enabled in the GUI, an IPv6 gateway can also be added for each member. See Feature visibility for details.

  6. Leave Cost as 0.

    The Cost field is used by the Lowest Cost (SLA) strategy. The link with the lowest cost is chosen to pass traffic. The lowest possible Cost is 0.

  7. Set Status to Enable, and click OK.
  8. Repeat the above steps for wan2, setting Gateway to the ISP's gateway: 10.100.20.2.
  9. Click Apply.

    SD-WAN Usage shows pie charts of usage per interface member.

Next: Adding a static route

Configuring the SD-WAN interface

Configuring the SD-WAN interface

First, SD-WAN must be enabled and member interfaces must be selected. The selected FortiGate interfaces can be of any type (physical, aggregate, VLAN, IPsec, and others), but must be removed from any other configurations on the FortiGate.

In this step, two interfaces are configured and then selected as SD-WAN member interfaces. This example uses a mix of static and dynamic IP addresses; your deployment could also use only one or the other.

Once the SD-WAN interface is configured, it is referenced as SD-WAN in the GUI for static routes and firewall policies, and virtual-wan-link can be enabled in the CLI.

To configure SD-WAN members:
  1. Configure the wan1 and wan2 interfaces. See Interface settings for details.
    1. Set the wan1 interface Addressing mode to DHCP and Distance to 10.
      Note

      By default, a DHCP interface has a distance of 5, and a static route has a distance of 10. It is important to account for this when configuring your SD-WAN for 50/50 load balancing by setting the DHCP interface's distance to 10.

    2. Set the wan2 interface IP/Netmask to 10.100.20.1 255.255.255.0.
  2. Go to Network > SD-WAN and set Status to Enable.

    Routing for each SD-WAN interface is defined here.

  3. In the SD-WAN Interface Members table, click Create New.

  4. Select wan1 as the interface.
  5. As wan1 uses DHCP, leave Gateway as the default 0.0.0.0.

    If IPv6 visibility is enabled in the GUI, an IPv6 gateway can also be added for each member. See Feature visibility for details.

  6. Leave Cost as 0.

    The Cost field is used by the Lowest Cost (SLA) strategy. The link with the lowest cost is chosen to pass traffic. The lowest possible Cost is 0.

  7. Set Status to Enable, and click OK.
  8. Repeat the above steps for wan2, setting Gateway to the ISP's gateway: 10.100.20.2.
  9. Click Apply.

    SD-WAN Usage shows pie charts of usage per interface member.

Next: Adding a static route