config link-load-balance proximity-route
Use this command to configure proximity routing.
The proximity route feature enables you to associate link groups with efficient routes. Proximity routes can improve user experience over the WAN because traffic is routed over fast routes.
You can use either or both of these methods:
• Dynamic Detection—The system polls the network for efficient routes. The algorithm selects a gateway based on latency, time-to-live (TTL), and traffic load.
• Static Table—You specify the gateways to use for traffic on destination networks.
If you configure both, the system checks the static table first for a matching route and, if any, uses it. If there is no matching static route, the system uses dynamic detection.
Before you begin:
• You must have knowledge of IP addresses used in outbound network routes to configure a static route.
• You must have read-write permission for link load balancing settings.
Syntax
config link-load-balance proximity-route
set mode {disable | dynamic-detect-only | static-table-first | static-table-only}
set dynamic-cache-aging-period <integer>
set dynamic-detect-protocol icmp
set dynamic-detect-retry-count <class_ip>
set dynamic-detect-retry-interval <integer>
config static-table
edit <No.>
set destination <ip&netmask>
set gateway <class_ip>
next
end
next
end
mode | • disable • dynamic-detect-only • static-table-first • static-table-only |
dynamic-cache-aging-period | The default is 86,400 seconds (24 hours). |
dynamic-detect-protocol icmp | ICMP is the only supported protocol. |
dynamic-detect-retry-count | The default is 3. |
dynamic-detect-retry-interval | The default is 3. |
config static-table |
destination | Address/mask notation to match the destination IP address in the packet header. |
gateway | IP address for the gateway router. |
Example
FortiADC-VM # config link-load-balance proximity-route
FortiADC-VM (proximity-route) # set mode static-table-first
FortiADC-VM (proximity-route) # get
mode : static-table-first
dynamic-detect-protocol: icmp
dynamic-detect-retry-count: 3
dynamic-detect-retry-interval: 3
dynamic-cache-aging-period: 86400
FortiADC-VM (proximity-route) # config static-table
FortiADC-VM (static-table) # edit 1
Add new entry '1' for node 687
FortiADC-VM (1) # set gateway 198.51.100.0
FortiADC-VM (1) # set destination 198.51.100.10
FortiADC-VM (1) # end
FortiADC-VM (proximity-route) # get
mode : static-table-first
dynamic-detect-protocol: icmp
dynamic-detect-retry-count: 3
dynamic-detect-retry-interval: 3
dynamic-cache-aging-period: 86400
== [ 1 ]
FortiADC-VM (proximity-route) # show
config link-load-balance proximity-route
set mode static-table-first
config static-table
edit 1
set destination 198.51.100.10/32
set gateway 198.51.100.0
next
end
end