Configuring SD-WAN in the CLI
This example can be entirely configured using the CLI.
To configure SD-WAN in the CLI:
- Configure the wan1 and wan2 interfaces:
config system interface edit "wan1" set alias to_ISP1 set mode dhcp set distance 10 next edit "wan2" set alias to_ISP2 set ip 10.100.20.1 255.255.255.0 next end
- Enable SD-WAN and add the interfaces as members:
config system sdwan set status enable config members edit 1 set interface "wan1" next edit 2 set interface "wan2" set gateway 10.100.20.2 next end end
If no SD-WAN zone is specified, members are added to the default virtual-wan-link zone.
- Create a static route for SD-WAN:
config router static edit 1 set sdwan-zone "virtual-wan-link" next end
- Select the implicit SD-WAN algorithm:
config system sdwan set load-balance-mode {source-ip-based | weight-based | source-dest-ip-based | measured-volume-based} end