Chapter 3 Advanced Routing : Advanced Static Routing : Advanced static example: ECMP failover and load balancing : Configuring interface status detection for gateway load balancing
  
Configuring interface status detection for gateway load balancing
Interface status detection is used for ECMP route failover and load balancing. Interface status detection consists of the unit confirming that packets sent from an interface result in a response from a server. You can use up to three different protocols to confirm that an interface can connect to the server. Usually the server is the next-hop router that leads to an external network or the Internet. Interface status detection sends a packet using the configured protocols. If a response is received from the server, the unit assumes the interface can connect to the network. If a response is not received, the unit assumes that the interface cannot connect to the network.
Since it is possible that a response may not be received, even if the server and the network are operating normally, the dead gateway detection configuration controls the time interval between testing the connection to the server and the number of times the test can fail before the unit assumes that the interface cannot connect to the server.
 
As long as the unit receives responses for at least one of the protocols that you select, the unit assumes the server is operating and can forward packets. Responding to more than one protocol does not enhance the status of the server or interface.
To configure gateway failover detection for an interface - web-based manager
1. Go to Router > Static > Settings.
2. Under Link Health Monitor, select Create New.
3. Enter the following information:
 
Interface
Select the interface to test.
Gateway
Enter the IP address of the gateway.
Probe Type
Select the method of probe type, either Ping or HTTP.
Probe Interval(s)
Enter the interval between pings, in seconds.
Failure Threshold
Enter the number of times the test can fail before the unit assumes that the interface cannot connect to the server.
Recovery Threshold
Configure the threshold for ECMP recovery, ranging from 1 to 10.
HA Priority
Set the HA priority, if configuring an HA cluster.
4. Select OK.
To configure gateway failover detection for an interface - CLI
config system link-monitor
edit "test"
set srcintf "internal4"
set server "8.8.8.8"
set update-cascade-interface disable
end