Fortinet white logo
Fortinet white logo

CLI Reference

Config static

config static

Description: Configures static routes.

Edit <name>

Set status [enable | disable]

Set dst {ipv4-address}

Set gateway {ipv4-address}

Set distance [1 – 255]

Set *device <name1>

Set comment {string}

Unset

Next

Show

Abort

End

Delete <name>

Purge

Show

End

Sample command:

FX201E5919000057 (static) # show
config router static
    edit 1
        set status enable
        set dst 10.124.23.0/24
        set gateway 192.168.200.99
        set distance 1
        set device wan
        set comment this is a sample static route
    next
end

Config static

config static

Description: Configures static routes.

Edit <name>

Set status [enable | disable]

Set dst {ipv4-address}

Set gateway {ipv4-address}

Set distance [1 – 255]

Set *device <name1>

Set comment {string}

Unset

Next

Show

Abort

End

Delete <name>

Purge

Show

End

Sample command:

FX201E5919000057 (static) # show
config router static
    edit 1
        set status enable
        set dst 10.124.23.0/24
        set gateway 192.168.200.99
        set distance 1
        set device wan
        set comment this is a sample static route
    next
end