Reading a Routing Table – Detailed Guide
1. Types of Routes
Route Type | Description | Code Example |
---|---|---|
Directly Connected | Routes learned via physically connected interfaces | C |
Static | Manually configured routes | S |
Dynamic | Learned via routing protocols | O (OSPF), D (EIGRP), R (RIP), B (BGP) |
2. Route Codes and Protocol Sources
Code | Protocol | Meaning | Administrative Distance (AD) |
---|---|---|---|
C | Connected | Directly connected network | 0 |
S | Static | Manually configured | 1 |
O | OSPF | Intra-area route | 110 |
O IA | OSPF | Inter-area route | 110 |
O E1 | OSPF | External Type 1 | 110 |
O E2 | OSPF | External Type 2 | 110 |
D | EIGRP | Internal EIGRP | 90 |
D EX | EIGRP | External EIGRP | 170 |
R | RIP | Routing Information Protocol | 120 |
B | BGP | Border Gateway Protocol | 20 (external), 200 (internal) |
3. Destination Networks and Masks
- Displayed as
network prefix/mask
(e.g.,192.168.1.0/24
). - Default route shown as
0.0.0.0/0
.
4. Next-Hop Information
- Next-hop IP: Router IP to forward packets.
- Exit Interface: Local outgoing interface.
5. Metric Values
- OSPF: Cost (based on bandwidth).
- EIGRP: Composite (bandwidth, delay).
- RIP: Hop count.
- BGP: Path attributes.
6. Route Tags and Filters
- Tags help identify and filter routes, especially during redistribution.
7. Administrative Distance (AD)
- Determines route preference; lower AD = preferred route.
8. Subnet vs. Supernet Entries
- /32: Single host route.
- Summarized routes aggregate multiple networks.
9. Route Age and Last Update
- Shows how long since last route update (e.g.,
00:00:12
= 12 seconds ago).
10. Fallback Routes and Candidate Defaults
- Floating static routes have higher AD and serve as backups.
11. Parsing Output Line by Line
O 10.0.0.0/24 [110/20] via 192.168.1.2, 00:00:12, GigabitEthernet0/1
Part | Explanation |
---|---|
O | Learned via OSPF |
10.0.0.0/24 | Destination network |
[110/20] | [AD/Metric] |
via 192.168.1.2 | Next-hop IP |
00:00:12 | Route age |
GigabitEthernet0/1 | Exit interface |
12. Verifying Reachability
show ip route [network]
ping [IP]
,traceroute [IP]
13. Common Troubleshooting Clues
Symptom | Possible Cause |
---|---|
Missing routes | Incorrect network statements, route not learned |
Unexpected AD or metric | Misconfigured protocols or redistribution |
Incorrect next-hop | Topology or configuration errors |
14. IPv6 Routing Table Differences
- Uses
show ipv6 route
. - Similar route codes with IPv6 specifics.
✅ Summary Table
(See Section 11)