Skip to main content
akomurlu
Staff
Staff
Oct 13, 2026 9:47 AM UTC

Technical Tip: Using SD-WAN rules to steer BGP connections on FortiGate

Description

This article describes the new feature added for ADVPN 2.0 deployment with multiple underlaying links. The new setting allows the BGP session to perform failover using SD-WAN rules.

Scope

FortiGate.

Solution

In an SD-WAN hub-and-spoke deployment, a spoke FortiGate may have multiple underlay connections to reach a hub. If a BGP session uses a loopback address as its update source, locally generated BGP traffic (TCP port 179) may follow the routing table rather than the SD-WAN rules used to steer regular traffic. Consequently, BGP connectivity may become unstable when an underlay link is degraded, even though SD-WAN redirects user traffic to a healthy link.

Starting with FortiOS 7.6.7 and 8.0.0, the use-sdwan option under the BGP neighbor configuration allows locally generated BGP connections to use SD-WAN rules. This helps align BGP connection traffic with the intended SD-WAN path-selection strategy.

Enable use-sdwan on the relevant BGP neighbor on the spoke FortiGate:

config router bgp
    config neighbor
        edit <BGP neighbor IP>
            set remote-as <AS NUMBER>
            set update-source "loopback"
            set use-sdwan enable
        next
    end
end


For additional details, refer to the Fortinet CLI reference for FortiOS 7.6.7: config router bgp.

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024