add static-route ... nexthop gateway monitored-ip

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

Description

Add static route monitoring.

Notes:

  • You can only add or set a default static route if the Advanced Setting "allow-default-static-route" is turned on.

  • Probing static route can only be done on the default route.

Syntax

add static-route [ source ] [ service ] [ destination ] [ nexthop gateway monitored-ip <Monitored IP Address> {on | off}

monitored-ip-option {fail-all | fail-any | off} { logical | ipv4-address } ] [ metric ]

Parameters

Parameter

Description

destination

IP address and subnet mask length of the destination of the packet in the format IP Address/Subnet.

For example: 192.168.0.0/16

Default: 0.0.0.0/0

Note - The value "0.0.0.0/0" is supported starting from the R81.10.05 version.

metric

Specifies the route metric (integer).

service

Specifies the service name.

source

IP address and subnet mask length of the source of the packet in the format IP Address/Subnet.

For example: 192.168.1.0/24

monitored-ip

Remote server to monitor for the next hop gateway.

Note - This is deprecated starting from R81.10.07.

You can a maximum of three unique servers (in separate commands).

The IPv4 address is followed by "on" or "off":

  • on - Adds this address

  • off - Removes this address

monitored-ip-option

Note - This is deprecated starting from R81.10.07.

Sets the failure condition for the configured monitored servers.

Options:

  • fail-all - - If all the checked servers fail, the probing fails.

    Fails the next hop gateway when all monitored IP addresses become unreachable. Restores the next hop.

  • fail_any - If only one of the servers fails, the probing fails.

    Fails the next hop gateway when one of the monitored IP addresses becomes unreachable.

  • off - Turns off the route probing.

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 Commands

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 172.28.4.4 on metric 101

R81.10.05 and lower

add static-route service http nexthop gateway monitored-ip 172.15.47.0 on monitored-ip-option fail-all logical internet

add static-route destination 0.0.0.0/0 nexthop gateway ipv4-address 172.28.4.4