Fortinet black logo

CLI reference

config system route

config system route

Use this command to configure static routes.

Syntax

config system route
    edit <route_int>
        set destination <destination_ipv4mask>
        set gateway <gateway_ipv4>
        set interface <interface name>
    end

Variable

Description

Default

<route_int>

Index number of the route in the routing table.

destination <destination_ipv4mask>

Destination IP address and netmask of traffic that is subject to this route, separated by a space.

To indicate all traffic regardless of IP address and netmask, enter 0.0.0.0 0.0.0.0.

0.0.0.0 0.0.0.0

gateway <gateway_ipv4>

IP address of the gateway router.

0.0.0.0

set interface <interface name>

Network interface associated with this route.

config system route

Use this command to configure static routes.

Syntax

config system route
    edit <route_int>
        set destination <destination_ipv4mask>
        set gateway <gateway_ipv4>
        set interface <interface name>
    end

Variable

Description

Default

<route_int>

Index number of the route in the routing table.

destination <destination_ipv4mask>

Destination IP address and netmask of traffic that is subject to this route, separated by a space.

To indicate all traffic regardless of IP address and netmask, enter 0.0.0.0 0.0.0.0.

0.0.0.0 0.0.0.0

gateway <gateway_ipv4>

IP address of the gateway router.

0.0.0.0

set interface <interface name>

Network interface associated with this route.