Free tech learning for everyone, from basics to pro

SD-WANNetworking SecurityIntermediate

Lab: configuring FortiGate SD-WAN with two internet links, health checks and SLA rules

In short: This lab configures SD-WAN on a FortiGate with two internet links. Both interfaces become members of an SD-WAN zone, a health check measures their latency, jitter and loss, and a default route plus firewall policy use the zone. SD-WAN rules then send voice to the best-quality link and bulk traffic to the cheaper one. Verification commands show link health and rule choices.

Lab setup

  • A FortiGate (hardware or FortiGate VM) running a recent FortiOS 7.x release.
  • wan1: fibre, gateway 198.51.100.1. wan2: 5G router, gateway 192.0.2.1.
  • internal: LAN 10.10.10.0/24.

Use documentation addresses as shown or your lab's real values. Commands may differ slightly between FortiOS versions; check the CLI reference for your version.

FortiGate SD-WAN building blocksZonevirtual-wan-linkMemberswan1, wan2Health checkSLA probesRulesapp to bestlinkPolicyfirewallallows
Figure 1. Members join a zone, health checks measure them, and rules steer traffic.

Step 1: SD-WAN members

Remove any existing references to wan1 and wan2 in routes or policies first, then:

config system sdwan
    set status enable
    config zone
        edit "virtual-wan-link"
        next
    end
    config members
        edit 1
            set interface "wan1"
            set gateway 198.51.100.1
            set cost 0
        next
        edit 2
            set interface "wan2"
            set gateway 192.0.2.1
            set cost 10
        next
    end
end

Step 2: health check

config system sdwan
    config health-check
        edit "internet-sla"
            set server "1.1.1.1" "8.8.8.8"
            set protocol ping
            set interval 500
            set members 1 2
            config sla
                edit 1
                    set latency-threshold 150
                    set jitter-threshold 30
                    set packetloss-threshold 2
                next
            end
        next
    end
end

Step 3: default route and policy

config router static
    edit 1
        set sdwan-zone "virtual-wan-link"
    next
end

config firewall policy
    edit 1
        set name "LAN-to-Internet"
        set srcintf "internal"
        set dstintf "virtual-wan-link"
        set srcaddr "all"
        set dstaddr "all"
        set action accept
        set schedule "always"
        set service "ALL"
        set nat enable
    next
end

Step 4: SD-WAN rules

Voice goes to the link with the best quality; a backup server's traffic prefers the cheaper link.

config system sdwan
    config service
        edit 1
            set name "voice-best-quality"
            set mode priority
            set dst "all"
            set internet-service enable
            set internet-service-app-ctrl 12345
            set health-check "internet-sla"
            set link-cost-factor jitter
            set priority-members 1 2
        next
        edit 2
            set name "backup-lowest-cost"
            set mode sla
            set dst "Backup-Server"
            set priority-members 1 2
            config sla
                edit "internet-sla"
                    set id 1
                next
            end
        next
    end
end

Replace 12345 with the application ID of your voice service from the FortiGuard application list, or match voice by destination address object. Create the Backup-Server address object first. In SLA mode, FortiOS picks the first member in the priority list that meets the SLA, falling back to others when it does not.

Step 5: verify

diagnose sys sdwan health-check status
diagnose sys sdwan service4
diagnose sys sdwan member
get router info routing-table all

Generate test traffic and check the SD-WAN monitor in the GUI. Unplug wan1 or add delay in your lab to see rules move traffic.

Common mistakes

  • Forgetting to remove old static routes or policies that reference member interfaces.
  • No firewall policy to the SD-WAN zone, so traffic is dropped.
  • Health check servers that block ping or are unreachable through one link.
  • SLA thresholds tighter than the link's normal performance, causing constant failover.

Real-world example: health check against the gateway

A small office configured its health check to ping each link's own modem. The 5G modem always replied, even when the mobile network was down, so traffic never failed over. Changing the health check to public servers beyond the provider made failover work.

Practice

What must you do before adding an interface as an SD-WAN member on a FortiGate?
Remove existing references to it in routes and firewall policies.
What does the health check measure?
Latency, jitter and packet loss to the configured servers through each member.
Why should health checks target servers beyond the provider rather than the local modem?
The modem may reply even when the provider network is down, hiding failures.

Key takeaways

  • FortiGate SD-WAN members join a zone used by routes and policies.
  • Health checks measure each member against SLA thresholds.
  • SD-WAN rules steer applications by quality, cost or SLA.
  • Verify with diagnose sys sdwan commands and test failover.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: