On a Cisco IOS router, the show ip route command can be used to display the IPv4 routing table of a router. A router provides additional route information, including how the route was learned, how long the route has been in the table, and which specific interface to use to get to a predefined destination.

Entries in the routing table can be added as:

The sources of the routing table entries are identified by a code. The code identifies how the route was learned. For instance, common codes include:

Note: Other codes are beyond the scope of this chapter.

The figure shows the routing table of R1 in a simple network.