network route
Use this command to add or delete a route in the routing table, or to list the routing table.
This command displays all individual entries, including automatically configured routes for the loopback interface and VLANs, and also displays each route’s priority. Unlike network rtcache, it displays all known routes, regardless of whether they have been recently used.
Do not delete routes unless you are sure. FortiWeb does not ask you to confirm the deletion, and there is no undelete mechanism. For example, if you accidentally delete a loopback interface route, you must recreate it manually. |
To use this command, your administrator account’s access control profile must have rw
or w
permission to the sysgrp
area. For details, see Permissions.
Syntax
diagnose network route add {<source_ipv4mask> | <source_ipv6mask>} <delay_int> {<destination_ipv4mask> | <destination_ipv6mask>} <delay_int> <delay_int><priority_int>
diagnose network route delete {<source_ipv4mask> | <source_ipv6mask>} <delay_int> {<destination_ipv4mask> | <destination_ipv6mask>} <delay_int> <delay_int> <priority_int>
diagnose network route list
Variable | Description | Default |
Enter the IP address and network mask of the source, separated by a space. | No default. | |
Enter the name of the interface to add or delete from the routing table. | No default. | |
Enter the IP address and network mask of the source, separated by a space. | No default. | |
Enter the IP address of the next hop router (sometimes called a gateway) to which this route sends packets. | No default. | |
Enter the priority of the route in the routing table. The lower the number, the higher the priority. The valid range is 1–256. |
0
|
Example
This example displays the routing table.
FortiWeb # diagnose network route list
0.0.0.0/0(none)->10.200.0.0/16(port1) via 0.0.0.0, pri 0 prot 2 scope 253
::/0(none)->fe80::/64(port1) via ::, pri 256 prot 2 scope 0
::/0(none)->fe80::/64(port2) via ::, pri 256 prot 2 scope 0
::/0(none)->fe80::/64(port3) via ::, pri 256 prot 2 scope 0
::/0(none)->fe80::/64(port4) via ::, pri 256 prot 2 scope 0
::/0(none)->fe80::/64(port5) via ::, pri 256 prot 2 scope 0
::/0(none)->fe80::/64(port6) via ::, pri 256 prot 2 scope 0
::/0(none)->fe80::/64(port7) via ::, pri 256 prot 2 scope 0
::/0(none)->fe80::/64(port8) via ::, pri 256 prot 2 scope 0
::/0(none)->fe80::/64(port9) via ::, pri 256 prot 2 scope 0
::/0(none)->fe80::/64(port10) via ::, pri 256 prot 2 scope 0
::/0(none)->fe80::/64(port_tn) via ::, pri 256 prot 2 scope 0
Example
This example adds a route to the routing table.
diagnose network route add 10::/64 port1 10:200::1/64 port1 10::1 0