Fortinet black logo

Administration Guide

Link monitor

Copy Link
Copy Doc ID 0f66c6af-cee6-11eb-97f7-00505692583a:163702
Download PDF

Link monitor

You can monitor the link to a server. The FortiSwitch unit sends periodic ping messages to test that the server is available. In the CLI, you can use both IPv4 and IPv6 addresses.

Tooltip

The link monitor will only update static routes if the set device command under config router static is set.

Configuring the link monitor

Using the GUI:
  1. Go to Router > Config > Link Probes.
  2. Select Add Probe to create a new probe.
  3. Enter an IP address for the Gateway IP.
  4. Configure the other fields as required (see the table in this section for field descriptions).
  5. Select Add to create the probe.
Using the CLI:

config system link-monitor

edit <link monitor name>

set addr-mode {ipv4 | ipv6}

set srcintf <string>

set protocol {arp | ping}

set gateway-ip <IPv4 address>

set gateway-ip6 <IPv6 address>

set source-ip <IPv4 address>

set source-ip6 <IPv6 address>

set interval <integer>

set timeout <integer>

set failtime <integer>

set recoverytime <integer>

set update-static-route {enable | disable}

set status {enable | disable}

next

end

Variable

Description

<link monitor name>

Enter the link monitor name.

addr-mode {ipv4 | ipv6}

Select whether to use IPv4 or IPv6 addresses. The default is IPv4 addresses.

srcintf <string>

Interface where the monitor traffic is sent.

protocol {arp | ping}

Protocols used to detect the server. Select ARP or ping.

gateway-ip <IPv4 address>

Gateway IPv4 address used to PING the server. This option is available only when addr-mode is set to ipv4.

gateway-ip6 <IPv6 address>

Gateway IPv6 address used to PING the server. This option is available only when addr-mode is set to ipv6.

source-ip <IPv4 address>

Source IPv4 address used in packet to the server. This option is available only when addr-mode is set to ipv4.

source-ip6 <IPv6 address>

Source IPv6 address used in packet to the server. This option is available only when addr-mode is set to ipv6.

interval <integer>

Detection interval in seconds. The range is 1-3600.

timeout <integer>

Detect request timeout in seconds. The range is 1-255.

failtime <integer>

Number of retry attempts before bringing the server down. The range is 1-10.

recoverytime <integer>

Number of retry attempts before bringing the server up. The range is 1-10.

update-static-route {enable | disable}

Enable or disable update static route. The default is enabled.

status {enable | disable}

Enable or disable link monitor administrative status. The default is enabled.

Link monitor

You can monitor the link to a server. The FortiSwitch unit sends periodic ping messages to test that the server is available. In the CLI, you can use both IPv4 and IPv6 addresses.

Tooltip

The link monitor will only update static routes if the set device command under config router static is set.

Configuring the link monitor

Using the GUI:
  1. Go to Router > Config > Link Probes.
  2. Select Add Probe to create a new probe.
  3. Enter an IP address for the Gateway IP.
  4. Configure the other fields as required (see the table in this section for field descriptions).
  5. Select Add to create the probe.
Using the CLI:

config system link-monitor

edit <link monitor name>

set addr-mode {ipv4 | ipv6}

set srcintf <string>

set protocol {arp | ping}

set gateway-ip <IPv4 address>

set gateway-ip6 <IPv6 address>

set source-ip <IPv4 address>

set source-ip6 <IPv6 address>

set interval <integer>

set timeout <integer>

set failtime <integer>

set recoverytime <integer>

set update-static-route {enable | disable}

set status {enable | disable}

next

end

Variable

Description

<link monitor name>

Enter the link monitor name.

addr-mode {ipv4 | ipv6}

Select whether to use IPv4 or IPv6 addresses. The default is IPv4 addresses.

srcintf <string>

Interface where the monitor traffic is sent.

protocol {arp | ping}

Protocols used to detect the server. Select ARP or ping.

gateway-ip <IPv4 address>

Gateway IPv4 address used to PING the server. This option is available only when addr-mode is set to ipv4.

gateway-ip6 <IPv6 address>

Gateway IPv6 address used to PING the server. This option is available only when addr-mode is set to ipv6.

source-ip <IPv4 address>

Source IPv4 address used in packet to the server. This option is available only when addr-mode is set to ipv4.

source-ip6 <IPv6 address>

Source IPv6 address used in packet to the server. This option is available only when addr-mode is set to ipv6.

interval <integer>

Detection interval in seconds. The range is 1-3600.

timeout <integer>

Detect request timeout in seconds. The range is 1-255.

failtime <integer>

Number of retry attempts before bringing the server down. The range is 1-10.

recoverytime <integer>

Number of retry attempts before bringing the server up. The range is 1-10.

update-static-route {enable | disable}

Enable or disable update static route. The default is enabled.

status {enable | disable}

Enable or disable link monitor administrative status. The default is enabled.