Examining the Routing Table
The show ip route command
9.1.1 This page will explain the functions of the show ip route command.
One of the primary functions of a router is to determine the best path to a given destination. A router learns paths, which are also called routes, from the configurations entered by an administrator or from other routers through routing protocols. Routers store this routing information in routing tables using on-board random access memory (RAM). A routing table contains a list of the best available routes. Routers use the routing table to make packet forwarding decisions.
The show ip route command displays the contents of the IP routing table. This table contains entries for all known networks and subnetworks, as well as a code that indicates how that information was learned. The following are some additional commands that can be used with the show ip route command:
The example routing table shows four routes for directly connected networks. These routes are labeled with a C. RTA drops any packet destined for a network that is not listed in the routing table. The routing table for RTA will have to include more routes before it can forward to other destinations. There are two ways to add new routes:
The Lab Activity will allow students to use the show ip route command to examine routing tables.
The next page will define a gateway of last resort.
The show ip route command
9.1.1 This page will explain the functions of the show ip route command.
One of the primary functions of a router is to determine the best path to a given destination. A router learns paths, which are also called routes, from the configurations entered by an administrator or from other routers through routing protocols. Routers store this routing information in routing tables using on-board random access memory (RAM). A routing table contains a list of the best available routes. Routers use the routing table to make packet forwarding decisions.
The show ip route command displays the contents of the IP routing table. This table contains entries for all known networks and subnetworks, as well as a code that indicates how that information was learned. The following are some additional commands that can be used with the show ip route command:
- show ip route connected
- show ip routeaddress
- show ip route rip
- show ip route igrp
- show ip route static
The example routing table shows four routes for directly connected networks. These routes are labeled with a C. RTA drops any packet destined for a network that is not listed in the routing table. The routing table for RTA will have to include more routes before it can forward to other destinations. There are two ways to add new routes:
- Static routing - An administrator manually defines routes to one or more destination networks.
- Dynamic routing - Routers follow rules defined by a routing protocol to exchange routing information and independently select the best path.
The Lab Activity will allow students to use the show ip route command to examine routing tables.
The next page will define a gateway of last resort.
No comments:
Post a Comment