Fortinet black logo

set route

Copy Link
Copy Doc ID 7461b3d5-68ec-11ea-9384-00505692583a:105872
Download PDF

set route

This command sets the gateway for FortiWeb Manager.

Syntax

set route <DST/LENGTH> gw <GATEWAY> device <DEVICE>

Variable Description

<DST/LENGTH>

Enter the destination IP address and network mask of packets that use this static route, separated by a slash ( / ).

Enter 0.0.0.0/0.0.0.0 , 0.0.0.0/0 or ::/0 to create a default route that matches the DST field in the IP header of all packets.

gw <GATEWAY>

Enter the IP address of the next-hop router to which FortiWeb Manager forwards packets that match Destination IP/Mask (IPv4/IPv6). Ensure that this router knows how to route packets to the destination IP addresses or forward packets to another router with this information.

For a direct Internet connection, this is the router that forwards traffic towards the Internet, and could belong to your ISP.

device <DEVICE>

Enter the network interface through which FortiWeb Manager routes the packets that match Destination IP/Mask (IPv4/IPv6) to the next-hop router.

Example

set route 0.0.0.0/0 gw 10.200.0.1 device port1

set route ::/0 gw 10::1 device port1

set route

This command sets the gateway for FortiWeb Manager.

Syntax

set route <DST/LENGTH> gw <GATEWAY> device <DEVICE>

Variable Description

<DST/LENGTH>

Enter the destination IP address and network mask of packets that use this static route, separated by a slash ( / ).

Enter 0.0.0.0/0.0.0.0 , 0.0.0.0/0 or ::/0 to create a default route that matches the DST field in the IP header of all packets.

gw <GATEWAY>

Enter the IP address of the next-hop router to which FortiWeb Manager forwards packets that match Destination IP/Mask (IPv4/IPv6). Ensure that this router knows how to route packets to the destination IP addresses or forward packets to another router with this information.

For a direct Internet connection, this is the router that forwards traffic towards the Internet, and could belong to your ISP.

device <DEVICE>

Enter the network interface through which FortiWeb Manager routes the packets that match Destination IP/Mask (IPv4/IPv6) to the next-hop router.

Example

set route 0.0.0.0/0 gw 10.200.0.1 device port1

set route ::/0 gw 10::1 device port1