Chapter 10 Install and System Administration for FortiOS 5.0 : Advanced concepts : Dual internet connections (redundant Internet connections) : Redundant interfaces : Routing
  
Routing
You need to configure a default route for each interface and indicate which route is preferred by specifying the distance. The lower distance is declared active and placed higher in the routing table.
 
When you have dual WAN interfaces that are configured to provide fail over, you might not be able to connect to the backup WAN interface because the FortiGate unit may not route traffic (even responses) out of the backup interface. The FortiGate unit performs a reverse path lookup to prevent spoofed traffic. If no entry can be found in the routing table which sends the return traffic out the same interface, then the incoming traffic is dropped.
To configure the routing of the two interfaces - web-based manager
1. Go to Router > Static > Static Routes and select Create New.
For low-end FortiGate units, go to System > Network > Routing and select Create New.
2. Set the Destination IP/Mask to the address and netmask to 0.0.0.0/0.0.0.0.
3. Select the Device to the primary connection, WAN1.
4. Enter the Gateway address.
5. Select Advanced.
6. Set the Distance to 10.
7. Select OK.
8. Repeat steps 1 through 7 setting the Device to WAN2 and a Distance of 20.
To configure the routing of the two interfaces - CLI
config router static
edit 1
set dst 0.0.0.0 0.0.0.0
set device WAN1
set gateway 0.0.0.0 0.0.0.0
set distance 10
next
edit 1
set dst <ISP_Address>
set device WAN2
set gateway <gateway_address>
set distance 20
next
end
See Also
Ping server
Security policies
Redundant interfaces
Load sharing
Link redundancy and load sharing