Created on
12-17-2021
11:11 AM
Edited on
04-23-2025
07:54 AM
By
Stephen_G
Description
This article describes how to view routing information.
Scope
FortiGate Routing.
Solution
View routing information on FortiGate CLI.
RIB vs FIB:
Routing Information Base (RIB):
Forwarding Information Base (FIB):
Viewing RIB in the CLI:
FGT # get router info routing-table all
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default
C 10.27.0.0/20 is directly connected, port2
C 10.32.0.0/20 is directly connected, port3
C 10.37.0.0/20 is directly connected, port4
O 10.143.0.0/20 [110/2] via 10.27.9.50, port2, 03:53:48
2 Ways of viewing FIB in CLI:
Forwarding table (Kernel routes/FIB):
FGT # get router info kernel
...
FIB Type ID: Types of routing connection:
Type ID | Value |
1 | Unicast |
2 | Local |
3 | Broadcast |
4 | Anycast |
5 | Multicast |
6 | Blackhole |
7 | Unreachable |
8 | Prohibited |
FIB Proto ID: This indicates where the route came from:
Proto ID | Source Protocol |
2 | Kernel |
11 | ZebOS |
14 | FortiOS |
15 | HA |
16 | Authentication-based |
17 | HA1 |
18 | HA Kernel Routes |
19 | HA Route on Secondary FortiGate |
30 | HA Route on New Primary |
Other FIB Values:
tab= | table number (254 for unicast and 255 for multicast) |
vf= | VDOM index number |
prio= | Priority of the route, lower priorities are preferred |
pref= | Preferred next hop |
gwy= | Address of the gateway for the route |
dev= | Outgoing interface index |
Related articles:
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.