Fortinet black logo

FortiGate NGFW to FortiSASE SPA Hub Conversion Deployment Guide

BGP configuration

Copy Link
Copy Doc ID b10d503a-c519-11ee-8c42-fa163e15d75b:968344
Download PDF

BGP configuration

FortiSASE security points of presence (PoP) connect to the hub FortiGate and establish iBGP peering. FortiSASE security PoPs learn routes to your network but do not advertise any route except their router-id IP address.

The hub FortiGate requires the following BGP settings:

  • AS number
  • Router ID
  • Using iBGP for dynamic routing via overlays
  • BGP neighbor IP address for each overlay
  • BGP neighbor group configured on the hub to dynamically peer with FortiSASE security PoPs
  • For BGP per overlay, BGP peering is done via the IP addresses allocated to the VPN Tunnel interfaces via IKE mode configuration. In this configuration example, the IP address range is 192.168.10.1-192.168.10.252. Therefore, in the BGP settings, the neighbor range needs to be the same as the IKE mode configuration tunnel IP address assignment.

  • One BGP session per overlay between the hub and each FortiSASE security PoP
Note

The following settings are only examples. Do not consider them as recommended settings.

To configure BGP using the GUI:
Note

If you cannot view the Network > BGP tree menu, go to System > Feature Visibility and enable Advanced Routing in the Core Features column.

  1. Go to Network > BGP. Confirm that the Local AS field is set to 65001.
  2. In the Router ID field, enter 10.1.0.254, which is the loopback interface IP address.
  3. Configure neighbor options:
    1. In Neighbor Groups, create a new neighbor group:
      1. Click Create New. The Add BGP Neighbor Group pane displays.

      2. In the Remote AS field, enter 65001.
      3. Set Interface to the VPN tunnel interface on the hub used to listen to spoke VPN connections. For example, you may select VPN1.
      4. Enable Activate IPv4.
      5. Disable Attribute unchanged.
      6. Select the following options:
        • Route reflector client
        • Next hop self
        • Capability: graceful restart
        • Capability: route refresh
      7. Click OK.

    2. Click Apply to perform a hard refresh of the browser.
    3. In Neighbor Ranges, create a new neighbor range:
      1. Click Create New. The Create Neighbor Range pane displays.
      2. In the Prefix field, enter 10.251.1.0/255.255.255.0, which is the VPN peers subnet assigned using mode config.
      3. From the Neighbor group dropdown list, select VPN1.
      4. In the Max neighbor number field, enter 0.
      5. Click OK.

  4. In Networks, in the IP/Netmask field, enter 192.168.111.0 255.255.255.0.
  5. Enable Graceful Restart and configure the following options:
    1. In the Restart timer field, enter 120.
    2. In the Stale path timer field, enter 360.
    3. In the Update delay field, enter 120.

  6. Under Advanced Options, configure the following:
    1. In the Keepalive field, enter 60.
    2. Enable Holdtime and enter 180.
    3. Enable Background scan and enter 60.

  7. Under Best Path Selection, enable the following options:
    1. Client to client reflection
    2. EBGP multi path
    3. IBGP multi path
    4. Additional path
    5. Enforce first AS
    6. Fast external failover
    7. Log neighbor changes
    8. Network import check
    9. Ignore optional capability

  8. Click Apply.
  9. Configure the following CLI options. These options are not available in the GUI and you must run these CLI commands to configure them:
     config router bgp
       config neighbor-group
            edit "VPN1"
                set link-down-failover enable
                set additional-path both
                set adv-additional-path 4
            next
        end
    end
    
To configure BGP using the CLI:
config router bgp
   set as 65001
   set ibgp-multipath enable
   set additional-path enable
   set graceful-restart enable
   set additional-path-select 4
   config neighbor-group
        edit "VPN1"
            set capability-graceful-restart enable
            set link-down-failover enable
            set next-hop-self enable
            set remote-as 65001
            set additional-path both
            set adv-additional-path 4
            set route-reflector-client enable
        next
    end
    config neighbor-range
        edit 1
            set prefix 10.251.1.0 255.255.255.0
            set neighbor-group "VPN1"
        next
    end
end

BGP configuration

FortiSASE security points of presence (PoP) connect to the hub FortiGate and establish iBGP peering. FortiSASE security PoPs learn routes to your network but do not advertise any route except their router-id IP address.

The hub FortiGate requires the following BGP settings:

  • AS number
  • Router ID
  • Using iBGP for dynamic routing via overlays
  • BGP neighbor IP address for each overlay
  • BGP neighbor group configured on the hub to dynamically peer with FortiSASE security PoPs
  • For BGP per overlay, BGP peering is done via the IP addresses allocated to the VPN Tunnel interfaces via IKE mode configuration. In this configuration example, the IP address range is 192.168.10.1-192.168.10.252. Therefore, in the BGP settings, the neighbor range needs to be the same as the IKE mode configuration tunnel IP address assignment.

  • One BGP session per overlay between the hub and each FortiSASE security PoP
Note

The following settings are only examples. Do not consider them as recommended settings.

To configure BGP using the GUI:
Note

If you cannot view the Network > BGP tree menu, go to System > Feature Visibility and enable Advanced Routing in the Core Features column.

  1. Go to Network > BGP. Confirm that the Local AS field is set to 65001.
  2. In the Router ID field, enter 10.1.0.254, which is the loopback interface IP address.
  3. Configure neighbor options:
    1. In Neighbor Groups, create a new neighbor group:
      1. Click Create New. The Add BGP Neighbor Group pane displays.

      2. In the Remote AS field, enter 65001.
      3. Set Interface to the VPN tunnel interface on the hub used to listen to spoke VPN connections. For example, you may select VPN1.
      4. Enable Activate IPv4.
      5. Disable Attribute unchanged.
      6. Select the following options:
        • Route reflector client
        • Next hop self
        • Capability: graceful restart
        • Capability: route refresh
      7. Click OK.

    2. Click Apply to perform a hard refresh of the browser.
    3. In Neighbor Ranges, create a new neighbor range:
      1. Click Create New. The Create Neighbor Range pane displays.
      2. In the Prefix field, enter 10.251.1.0/255.255.255.0, which is the VPN peers subnet assigned using mode config.
      3. From the Neighbor group dropdown list, select VPN1.
      4. In the Max neighbor number field, enter 0.
      5. Click OK.

  4. In Networks, in the IP/Netmask field, enter 192.168.111.0 255.255.255.0.
  5. Enable Graceful Restart and configure the following options:
    1. In the Restart timer field, enter 120.
    2. In the Stale path timer field, enter 360.
    3. In the Update delay field, enter 120.

  6. Under Advanced Options, configure the following:
    1. In the Keepalive field, enter 60.
    2. Enable Holdtime and enter 180.
    3. Enable Background scan and enter 60.

  7. Under Best Path Selection, enable the following options:
    1. Client to client reflection
    2. EBGP multi path
    3. IBGP multi path
    4. Additional path
    5. Enforce first AS
    6. Fast external failover
    7. Log neighbor changes
    8. Network import check
    9. Ignore optional capability

  8. Click Apply.
  9. Configure the following CLI options. These options are not available in the GUI and you must run these CLI commands to configure them:
     config router bgp
       config neighbor-group
            edit "VPN1"
                set link-down-failover enable
                set additional-path both
                set adv-additional-path 4
            next
        end
    end
    
To configure BGP using the CLI:
config router bgp
   set as 65001
   set ibgp-multipath enable
   set additional-path enable
   set graceful-restart enable
   set additional-path-select 4
   config neighbor-group
        edit "VPN1"
            set capability-graceful-restart enable
            set link-down-failover enable
            set next-hop-self enable
            set remote-as 65001
            set additional-path both
            set adv-additional-path 4
            set route-reflector-client enable
        next
    end
    config neighbor-range
        edit 1
            set prefix 10.251.1.0 255.255.255.0
            set neighbor-group "VPN1"
        next
    end
end