Fortinet white logo
Fortinet white logo

CLI Reference

network rtcache

network rtcache

Use this command to display the routing cache.

Unlike network route, this command displays the cache of the most recently used routes, not necessarily the entire configuration. (You may have configured many routes, and these configurations will be saved to disk and appear in network route, but rarely used ones will not usually appear in the route cache, which keeps recently used routes in RAM for performance reasons.)

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 rtcache list

Example

This example displays the ARP cache.

172.20.120.52(port1)->256.256.256.256(lo) via 0.0.0.0, pri 0 prot 0 scope 0, ref 0 lastuse 3181 expires 0 error 0 used 855

172.20.120.100(port3)->172.20.120.256(lo) via 0.0.0.0, pri 0 prot 0 scope 0, ref 0 lastuse 434 expires 0 error 0 used 0

172.20.120.230(port1)->256.256.256.256(lo) via 0.0.0.0, pri 0 prot 0 scope 0, ref 0 lastuse 47386 expires 0 error 0 used 7

10.0.1.1(none)->10.0.1.1(lo) via 0.0.0.0, pri 0 prot 0 scope 0, ref 0 lastuse 223 expires 0 error 0 used 29551

0.0.0.0(none)->10.0.1.1(lo) via 0.0.0.0, pri 0 prot 0 scope 0, ref 0 lastuse 223 expires 0 error 0 used 7387

::(none)->::1(lo) via ::, pri 0 prot 0 scope 0 ref 1 lastuse 155845 expires 0 error 0 used 417

::(none)->2607:f0b0:f:420:20c:29ff:fe4d:3ad3(lo) via ::, pri 0 prot 0 scope 0 ref 1 lastuse 354923 expires 0 error 0 used 1

::(none)->2607:f0b0:f:420:20c:29ff:fe4d:3ae7(lo) via ::, pri 0 prot 0 scope 0 ref 1 lastuse 2590615 expires 0 error 0 used 0

::(none)->2607:f0b0:f:420:20c:29ff:fe4d:3af1(lo) via ::, pri 0 prot 0 scope 0 ref 1 lastuse 2590615 expires 0 error 0 used 0

::(none)->2607:f0b0:f:420::(port1) via ::, pri 256 prot 0 scope 0 ref 0 lastuse 2590616 expires 214715722 error 0 used 0

::(none)->ff00::(port4) via ::, pri 256 prot 0 scope 0 ref 0 lastuse 2590615 expires 0 error 0 used 0

::(none)->ff00::(lo) via ::, pri -1 prot 0 scope 0 ref 1 lastuse 449431651 expires 0 error -101 used 1

Example

This example adds a route to the routing table.

diagnose network route add vlan2 160.1.12.0 256.0.0.0 172.20.01.169 32 3 verify

Related topics

network rtcache

network rtcache

Use this command to display the routing cache.

Unlike network route, this command displays the cache of the most recently used routes, not necessarily the entire configuration. (You may have configured many routes, and these configurations will be saved to disk and appear in network route, but rarely used ones will not usually appear in the route cache, which keeps recently used routes in RAM for performance reasons.)

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 rtcache list

Example

This example displays the ARP cache.

172.20.120.52(port1)->256.256.256.256(lo) via 0.0.0.0, pri 0 prot 0 scope 0, ref 0 lastuse 3181 expires 0 error 0 used 855

172.20.120.100(port3)->172.20.120.256(lo) via 0.0.0.0, pri 0 prot 0 scope 0, ref 0 lastuse 434 expires 0 error 0 used 0

172.20.120.230(port1)->256.256.256.256(lo) via 0.0.0.0, pri 0 prot 0 scope 0, ref 0 lastuse 47386 expires 0 error 0 used 7

10.0.1.1(none)->10.0.1.1(lo) via 0.0.0.0, pri 0 prot 0 scope 0, ref 0 lastuse 223 expires 0 error 0 used 29551

0.0.0.0(none)->10.0.1.1(lo) via 0.0.0.0, pri 0 prot 0 scope 0, ref 0 lastuse 223 expires 0 error 0 used 7387

::(none)->::1(lo) via ::, pri 0 prot 0 scope 0 ref 1 lastuse 155845 expires 0 error 0 used 417

::(none)->2607:f0b0:f:420:20c:29ff:fe4d:3ad3(lo) via ::, pri 0 prot 0 scope 0 ref 1 lastuse 354923 expires 0 error 0 used 1

::(none)->2607:f0b0:f:420:20c:29ff:fe4d:3ae7(lo) via ::, pri 0 prot 0 scope 0 ref 1 lastuse 2590615 expires 0 error 0 used 0

::(none)->2607:f0b0:f:420:20c:29ff:fe4d:3af1(lo) via ::, pri 0 prot 0 scope 0 ref 1 lastuse 2590615 expires 0 error 0 used 0

::(none)->2607:f0b0:f:420::(port1) via ::, pri 256 prot 0 scope 0 ref 0 lastuse 2590616 expires 214715722 error 0 used 0

::(none)->ff00::(port4) via ::, pri 256 prot 0 scope 0 ref 0 lastuse 2590615 expires 0 error 0 used 0

::(none)->ff00::(lo) via ::, pri -1 prot 0 scope 0 ref 1 lastuse 449431651 expires 0 error -101 used 1

Example

This example adds a route to the routing table.

diagnose network route add vlan2 160.1.12.0 256.0.0.0 172.20.01.169 32 3 verify

Related topics