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 bfd [enable|disable]
        set blackhole [enable|disable]
        set comment {var-string}
        set device {string}
        set distance {integer}
        set dst {ipv4-classnet}
        set dstaddr {string}
        set dynamic-gateway [enable|disable]
        set gateway {ipv4-address}
        set internet-service {integer}
        set internet-service-custom {string}
        set link-monitor-exempt [enable|disable]
        set priority {integer}
        set src {ipv4-classnet}
        set status [enable|disable]
        set virtual-wan-link [enable|disable]
        set vrf {integer}
        set weight {integer}
    next
end

config router static

Parameter

Description

Type

Size

bfd

Enable/disable Bidirectional Forwarding Detection (BFD).

option

-

Option

Description

enable

Enable Bidirectional Forwarding Detection (BFD).

disable

Disable Bidirectional Forwarding Detection (BFD).

blackhole

Enable/disable black hole.

option

-

Option

Description

enable

Enable black hole.

disable

Disable black hole.

comment

Optional comments.

var-string

Maximum length: 255

device

Gateway out interface or tunnel.

string

Maximum length: 35

distance

Administrative distance.

integer

Minimum value: 1 Maximum value: 255

dst

Destination IP and mask for this route.

ipv4-classnet

Not Specified

dstaddr

Name of firewall address or address group.

string

Maximum length: 79

dynamic-gateway

Enable use of dynamic gateway retrieved from a DHCP or PPP server.

option

-

Option

Description

enable

Enable dynamic gateway.

disable

Disable dynamic gateway.

gateway

Gateway IP for this route.

ipv4-address

Not Specified

internet-service

Application ID in the Internet service database.

integer

Minimum value: 0 Maximum value: 4294967295

internet-service-custom

Application name in the Internet service custom database.

string

Maximum length: 64

link-monitor-exempt

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

option

-

Option

Description

enable

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

disable

Disable withdrawal of this static route when link monitor or health check is down.

priority

Administrative priority.

integer

Minimum value: 0 Maximum value: 4294967295

seq-num

Sequence number.

integer

Minimum value: 0 Maximum value: 4294967295

src

Source prefix for this route.

ipv4-classnet

Not Specified

status

Enable/disable this static route.

option

-

Option

Description

enable

Enable static route.

disable

Disable static route.

virtual-wan-link

Enable/disable egress through the virtual-wan-link.

option

-

Option

Description

enable

Enable virtual-wan-link access.

disable

Disable virtual-wan-link access.

vrf

Virtual Routing Forwarding ID.

integer

Minimum value: 0 Maximum value: 31

weight

Administrative weight.

integer

Minimum value: 0 Maximum value: 255

config router static

config router static

Configure IPv4 static routing tables.

config router static
    Description: Configure IPv4 static routing tables.
    edit <seq-num>
        set bfd [enable|disable]
        set blackhole [enable|disable]
        set comment {var-string}
        set device {string}
        set distance {integer}
        set dst {ipv4-classnet}
        set dstaddr {string}
        set dynamic-gateway [enable|disable]
        set gateway {ipv4-address}
        set internet-service {integer}
        set internet-service-custom {string}
        set link-monitor-exempt [enable|disable]
        set priority {integer}
        set src {ipv4-classnet}
        set status [enable|disable]
        set virtual-wan-link [enable|disable]
        set vrf {integer}
        set weight {integer}
    next
end

config router static

Parameter

Description

Type

Size

bfd

Enable/disable Bidirectional Forwarding Detection (BFD).

option

-

Option

Description

enable

Enable Bidirectional Forwarding Detection (BFD).

disable

Disable Bidirectional Forwarding Detection (BFD).

blackhole

Enable/disable black hole.

option

-

Option

Description

enable

Enable black hole.

disable

Disable black hole.

comment

Optional comments.

var-string

Maximum length: 255

device

Gateway out interface or tunnel.

string

Maximum length: 35

distance

Administrative distance.

integer

Minimum value: 1 Maximum value: 255

dst

Destination IP and mask for this route.

ipv4-classnet

Not Specified

dstaddr

Name of firewall address or address group.

string

Maximum length: 79

dynamic-gateway

Enable use of dynamic gateway retrieved from a DHCP or PPP server.

option

-

Option

Description

enable

Enable dynamic gateway.

disable

Disable dynamic gateway.

gateway

Gateway IP for this route.

ipv4-address

Not Specified

internet-service

Application ID in the Internet service database.

integer

Minimum value: 0 Maximum value: 4294967295

internet-service-custom

Application name in the Internet service custom database.

string

Maximum length: 64

link-monitor-exempt

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

option

-

Option

Description

enable

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

disable

Disable withdrawal of this static route when link monitor or health check is down.

priority

Administrative priority.

integer

Minimum value: 0 Maximum value: 4294967295

seq-num

Sequence number.

integer

Minimum value: 0 Maximum value: 4294967295

src

Source prefix for this route.

ipv4-classnet

Not Specified

status

Enable/disable this static route.

option

-

Option

Description

enable

Enable static route.

disable

Disable static route.

virtual-wan-link

Enable/disable egress through the virtual-wan-link.

option

-

Option

Description

enable

Enable virtual-wan-link access.

disable

Disable virtual-wan-link access.

vrf

Virtual Routing Forwarding ID.

integer

Minimum value: 0 Maximum value: 31

weight

Administrative weight.

integer

Minimum value: 0 Maximum value: 255