add static-route destination

In the R81.10.X releases, this command is available starting from the R81.10.05 version.

Description

Configure and probe a default static route that uses an internal LAN while there is also a default gateway on WAN.

Note - Advanced Probing Settings exist only in the WebUI.

See set static route destination.

Syntax

add static-route destination 0.0.0.0/0 nexthop gateway ipv4-address <IPv4 Address> monitored-ip-options { fail-any | fail-all | off }

Parameters

Parameter

Description

ipv4-address

The IPv4 address of the internal LAN.

monitored-ip-options

Note - This is deprecated in R81.10.07 and higher.

Specifies the monitoring options:

  • fail-any - If one host fails, the entire probing fails.

  • fail-all - All the hosts (maximum of 3) must fail for the probing to fail.

  • off - Stops the route probing completely.

monitored-server

Note - In R81.10.07 and higher only.

IP Address or Hostname - Remote server to monitor for the next hop gateway

monitoring-mode

Note - In R81.10.07 and higher only.

Enables route monitoring.

Options:

  • on

  • off

Example Command

In R81.10.05 and lower

add static-route destination 0.0.0.0/0 nexthop gateway ipv4-address 192.168.22.33 monitored-ip-options fail-all

In R81.10.07 and higher

add static-route destination 0.0.0.0/0 nexthop gateway ipv4-address 172.28.4.4 monitoring-mode on monitored-server 8.8.8.8 on metric 101