Fortinet white logo
Fortinet white logo

Route

Route

Route configuration is handled inside the global route context

To enter the global route context, from the base context run:

config system route

Available commands

Command

Description

abort

Cancels any edits made since entering the context, and returns to the base context

end

Saves changes made since entering the context, and returns to the base context

help

Shows the available commands

show

Show the current configuration, including uncommitted edits

delete [<route id>]

Deletes the specified route

purge

Deletes all configured routes

rename [<route id>] to [<new route id>]

Rename a route id to the specified new id

edit [<route id>]

Opens the specific route context for the specified route id

Specific Route Context

Inside a specific route context, the following commands are available:

Command

Description

abort

Cancels any edits made since entering the context, and returns to the base context

end

Saves changes made since entering the context, and returns to the base context

next

Readies the changes for commit, but does not push them until end is called on the global interface context. Returns to the global interface context

show

Show the current configuration, including uncommitted edits

set device [<interface name>]

Set the interface for this route to the specified interface

set dst [<ipv4/cidr>]

Set the destination subnet for this route to the specified IPv4 Address and CIDR mask.

Example:
set dst 192.0.2.0/24

set gateway [<gateway ip>]

Set the gateway IP used for this route

unset [device|dst|gateway]

Unset the specified configuration and reset it to the default value

Route

Route

Route configuration is handled inside the global route context

To enter the global route context, from the base context run:

config system route

Available commands

Command

Description

abort

Cancels any edits made since entering the context, and returns to the base context

end

Saves changes made since entering the context, and returns to the base context

help

Shows the available commands

show

Show the current configuration, including uncommitted edits

delete [<route id>]

Deletes the specified route

purge

Deletes all configured routes

rename [<route id>] to [<new route id>]

Rename a route id to the specified new id

edit [<route id>]

Opens the specific route context for the specified route id

Specific Route Context

Inside a specific route context, the following commands are available:

Command

Description

abort

Cancels any edits made since entering the context, and returns to the base context

end

Saves changes made since entering the context, and returns to the base context

next

Readies the changes for commit, but does not push them until end is called on the global interface context. Returns to the global interface context

show

Show the current configuration, including uncommitted edits

set device [<interface name>]

Set the interface for this route to the specified interface

set dst [<ipv4/cidr>]

Set the destination subnet for this route to the specified IPv4 Address and CIDR mask.

Example:
set dst 192.0.2.0/24

set gateway [<gateway ip>]

Set the gateway IP used for this route

unset [device|dst|gateway]

Unset the specified configuration and reset it to the default value