Fortinet white logo
Fortinet white logo

CLI Reference

config router static

config router static

Configure IPv4 static routing tables.

config router static
    Description: Configure IPv4 static routing tables.
    edit <seq-num>
        set status [enable|disable]
        set dst {ipv4-classnet}
        set src {ipv4-classnet}
        set gateway {ipv4-address}
        set weight {integer}
        set priority {integer}
        set device {string}
        set comment {var-string}
        set blackhole [enable|disable]
        set sdwan-zone <name1>, <name2>, ...
        set dstaddr {string}
        set link-monitor-exempt [enable|disable]
        set tag {integer}
    next
end

config router static

Parameter

Description

Type

Size

Default

seq-num

Sequence number.

integer

Minimum value: 0 Maximum value: 4294967295

0

status

Enable/disable this static route.

option

-

enable

Option

Description

enable

Enable static route.

disable

Disable static route.

dst

Destination IP and mask for this route.

ipv4-classnet

Not Specified

0.0.0.0 0.0.0.0

src

Source prefix for this route.

ipv4-classnet

Not Specified

0.0.0.0 0.0.0.0

gateway

Gateway IP for this route.

ipv4-address

Not Specified

0.0.0.0

weight

Administrative weight.

integer

Minimum value: 0 Maximum value: 255

0

priority

Administrative priority.

integer

Minimum value: 1 Maximum value: 65535

1

device

Gateway out interface or tunnel.

string

Maximum length: 35

comment

Optional comments.

var-string

Maximum length: 255

blackhole

Enable/disable black hole.

option

-

disable

Option

Description

enable

Enable black hole.

disable

Disable black hole.

sdwan-zone <name>

Choose SD-WAN Zone.

SD-WAN zone name.

string

Maximum length: 79

dstaddr

Name of firewall address or address group.

string

Maximum length: 79

link-monitor-exempt

Enable/disable withdrawal of this static route when link monitor or health check is down.

option

-

disable

Option

Description

enable

Keep this static route when link monitor or health check is down.

disable

Withdraw this static route when link monitor or health check is down. (default)

tag

Route tag.

integer

Minimum value: 0 Maximum value: 4294967295

0

config router static

config router static

Configure IPv4 static routing tables.

config router static
    Description: Configure IPv4 static routing tables.
    edit <seq-num>
        set status [enable|disable]
        set dst {ipv4-classnet}
        set src {ipv4-classnet}
        set gateway {ipv4-address}
        set weight {integer}
        set priority {integer}
        set device {string}
        set comment {var-string}
        set blackhole [enable|disable]
        set sdwan-zone <name1>, <name2>, ...
        set dstaddr {string}
        set link-monitor-exempt [enable|disable]
        set tag {integer}
    next
end

config router static

Parameter

Description

Type

Size

Default

seq-num

Sequence number.

integer

Minimum value: 0 Maximum value: 4294967295

0

status

Enable/disable this static route.

option

-

enable

Option

Description

enable

Enable static route.

disable

Disable static route.

dst

Destination IP and mask for this route.

ipv4-classnet

Not Specified

0.0.0.0 0.0.0.0

src

Source prefix for this route.

ipv4-classnet

Not Specified

0.0.0.0 0.0.0.0

gateway

Gateway IP for this route.

ipv4-address

Not Specified

0.0.0.0

weight

Administrative weight.

integer

Minimum value: 0 Maximum value: 255

0

priority

Administrative priority.

integer

Minimum value: 1 Maximum value: 65535

1

device

Gateway out interface or tunnel.

string

Maximum length: 35

comment

Optional comments.

var-string

Maximum length: 255

blackhole

Enable/disable black hole.

option

-

disable

Option

Description

enable

Enable black hole.

disable

Disable black hole.

sdwan-zone <name>

Choose SD-WAN Zone.

SD-WAN zone name.

string

Maximum length: 79

dstaddr

Name of firewall address or address group.

string

Maximum length: 79

link-monitor-exempt

Enable/disable withdrawal of this static route when link monitor or health check is down.

option

-

disable

Option

Description

enable

Keep this static route when link monitor or health check is down.

disable

Withdraw this static route when link monitor or health check is down. (default)

tag

Route tag.

integer

Minimum value: 0 Maximum value: 4294967295

0