SD-WAN configuration portability
When configuring SD-WAN, adding interfaces to members is optional.
This allows the SD-WAN to be configured without associating any interfaces to SD-WAN members. It also allows a configuration to be copied directly from one device to another, without requiring the devices to have interfaces with the same names.
After the configuration is created, add interfaces to the members make it functional.
Example 1
In this example, we create a template with two SD-WAN members configured without assigned interfaces that are used in a performance SLA and SD-WAN rule. The template can be used to configure new devices, as in Example 2. Interfaces are then assigned to the members, and the configuration becomes active.
To create the SD-WAN members in the GUI:
- Go to Network > SD-WAN, select the SD-WAN Zones tab, and click Create New > SD-WAN Member.
- Leave all the settings set to their default values and click OK.
- Repeat the above steps to create a second member.
The empty members are listed on the SD-WAN Zones tab.
The members are disabled until interfaces are configured, but can still be used in performance SLAs and SD-WAN rules.
To create a performance SLA in the GUI:
- Go to Network > SD-WAN and select the Performance SLAs tab.
- Click Create New.
- Configure the performance SLA, specifying the empty members as participants.
- Click OK.
To create an SD-WAN rule in the GUI:
- Go to Network > SD-WAN, select the SD-WAN Rules tab, and click Create New.
- Configure the rule, adding both members to the Interface preference field:
- Click OK.
To assign interfaces to the SD-WAN members in the GUI:
- Go to Network > SD-WAN and select the SD-WAN Zones tab.
- Edit the first member
- Set Interface to an actual interface.
- Click OK.
- Repeat the above steps to assign an interface to the second member.
To configure the SD-WAN in the CLI:
- Create SD-WAN members:
config system sdwan set status enable config members edit 1 next edit 2 next end end
- Create a health check (performance SLA):
config system sdwan config health-check edit "office" set server "office365.com" set protocol http set sla-fail-log-period 300 set sla-pass-log-period 300 set members 2 1 config sla edit 1 set latency-threshold 300 set jitter-threshold 200 next edit 2 set link-cost-factor latency set latency-threshold 20 next end next end end
- Create a service (rule):
config system sdwan config service edit 3 set name "Office365" set mode sla set internet-service enable set internet-service-app-ctrl 33182 config sla edit "office" set id 2 next end set priority-members 1 2 next end end
The SD-WAN configuration can now be used in as a template for new spokes, as in Example 2.
Example 2
In this example, the configuration from Example 1 is copied onto a new FortiGate.
Using the CLI console and the GUI
To copy the SD-WAN configuration from the original FortiGate:
- Optionally, change the console screen paging setting. See Screen paging for details.
- Open the CLI console.
- If necessary, click Clear console to empty the console.
- Enter the following command:
show system sdwan
- Either click Download and open the file in a text editor, or click Copy to clipboard and paste the content into a text editor.
- Edit the CLI configuration as necessary. For example, the first line that shows the
show
command should be deleted, and the default health checks can be removed. - If required, save the CLI configuration as a text file.
To paste the SD-WAN configuration onto a new FortiGate:
- Copy the SD-WAN configuration from the text editor.
- On the new FortiGate, open the CLI console.
- Press Ctrl + v to paste the CLI commands.
- In necessary, press Enter to apply the last
end
command.The SD-WAN configuration is copied to the new FortiGate.
If the interfaces do not exist, the SD-WAN members are created without interfaces, and are disabled until interfaces are configured.
To assign interfaces to the SD-WAN members:
- Go to Network > SD-WAN and select the SD-WAN Zones tab.
- Edit the first member
- Set Interface to an actual interface.
- Click OK.
- Repeat the above steps to assign an interface to the second member.
Using a terminal emulator
The following instructions use PuTTy. The steps may vary in other terminal emulators.
To copy the SD-WAN configuration from the original FortiGate:
- Connect to the FortiGate. See Connecting to the CLI for details.
- Enter the following command:
show system sdwan
- Select the output, press Ctrl + c to copy it, and then paste it into a text editor.
- Edit the CLI configuration as necessary. For example, the default health checks can be removed.
- If required, save the CLI configuration as a text file.
To paste the SD-WAN configuration onto a new FortiGate:
- Connect to the new FortiGate. See Connecting to the CLI for details.
- Copy the SD-WAN configuration from the text editor.
- Right-click to paste the SD-WAN configuration.
- In necessary, press Enter to apply the last
end
command.The SD-WAN configuration is copied to the new FortiGate.
If the interfaces do not exist, the SD-WAN members are created without interfaces, and are disabled until interfaces are configured.