Route static, Syntax, Example – Fortinet 5003 User Manual

Page 93: Related topics

Advertising
background image

FortiSwitch-5003A CLI reference

config

FortiSwitch-5003A and 5003 Fabric and Base Backplane Communications Guide
01-30000-85717-20081205

93

route static

Use this command to add, edit, or delete static routes for the mgmt interface.

Syntax

config route static

edit <sequence_number>

set

device <interface_name>

set

dst <destination-address_ipv4mask>

set

gateway <gateway-address_ipv4>

end

Example

This example shows how to add a default route for the mgmt interface that points to 192.168.22.44.

config route static

edit 2

set device mgmt
set dst 0.0.0.0 0.0.0.0
set gateway 192.168.22.44

end

Related topics

config system interface

execute traceroute

Variables

Description

Default

edit <sequence_number>

Enter a sequence number to identify the static route.

No default.

device <interface_name>

The device name is always mgmt because you cannot

configure routing for other FortiSwitch-5003A interfaces.

mgmt

dst <destination-
address_ipv4mask>

Enter the destination IP address and network mask for this

route.
You can enter 0.0.0.0 0.0.0.0 to create a default route.

0.0.0.0

0.0.0.0

gateway <gateway-
address_ipv4>

Enter the IP address of the next-hop router to which traffic is

forwarded by this route.

0.0.0.0

Advertising