Created on
11-17-2021
09:28 AM
Edited on
06-26-2024
09:51 PM
By
Anthony_E
Description | This article describes how to clear the FortiGate route cache. For some reason, it may be required to clear the route cache on FortiGate. |
Scope | FortiGate under Linux kernel 3.6. |
Solution |
Route cache is a Linux kernel component that is consulted before the actual route lookup. If the lookup into this cache does not produce a match, the packet is forwarded based on a FIB lookup. The cache is a hash table and a lookup into this table is performed based on a key constructed from the tuples seen in the IP packet header such as its source IP, destination IP, and related information.
To clear the route cache, from CLI issue the below command:
diag ip rtcache flush
FortiGates that are running on Linux kernel 3.6 or above will not have a Router cache anymore. This command will not be available.
Related article: Troubleshooting Tip: Route cache is removed from FortiGates running new kernel version |