Fortinet white logo
Fortinet white logo

CLI Reference

system route

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>

Enter the index number of the route in the routing table.

destination <destination_ipv4mask>

Enter the destination IP address and netmask of traffic that will be subject to this route, separated with 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>

Enter the IP address of the gateway router.

0.0.0.0

interface <interface_name>

Enter the interface name that you want to add the static route to.

Related topics

system link-monitor

system route

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>

Enter the index number of the route in the routing table.

destination <destination_ipv4mask>

Enter the destination IP address and netmask of traffic that will be subject to this route, separated with 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>

Enter the IP address of the gateway router.

0.0.0.0

interface <interface_name>

Enter the interface name that you want to add the static route to.

Related topics

system link-monitor