Here's what a routing table entry looks like:
C 192.168.1.0/24 is directly connected, GigabitEthernet0/0
S 10.0.0.0/8 [1/0] via 192.168.1.1
O 172.16.0.0/16 [110/20] via 192.168.1.2, 00:05:32, Gi0/1
The letter at the start indicates the route source:
- C: Connected (directly attached network)
- S: Static (manually configured)
- O: OSPF (learned dynamically)
- R: RIP (learned dynamically)
The numbers in brackets show . Lower values are preferred. The interface or next-hop address tells the router where to send matching packets.