The show ip route Command
Router# show ip route
This command is used to show the IP routing table on the router. It details the network as known to the router and its sources for the information (such as the routing protocols). This command is excellent for troubleshooting configuration errors and understanding how the network is communicating about its routes.
To see a particular network in the routing table, issue this command:
Router# show ip route network number
Example 4-1 shows the output of this command. Table 4-5 explains how to read this information.
Example 4-1 show ip route Output
SanJose#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, 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, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR T - traffic engineered route
Gateway of last resort is not set
140.100.0.0/28 is subnetted, 3 subnets C 140.100.17.192 is directly connected, FastEthernet3/0
C 140.100.17.128 is directly connected, FastEthernet1/0
C 140.100.32.0 is directly connected, Fddi2/0
Bldg_1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, 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, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR
Gateway of last resort is not set
140.100.0.0/28 is subnetted, 3 subnets O 140.100.17.192 [110/20] via 140.100.17.129, 00:07:44, Ethernet0
C 140.100.17.128 is directly connected, Ethernet0
O 140.100.32.0 [110/11] via 140.100.17.129, 00:07:44, Ethernet0
Table 4-5 explains the meaning of the important fields.
Table 4-5 Explanation of the show IP route Command That Was Performed on Router Building 1
Table 4-5 explains the meaning of the important fields.
Table 4-5 Explanation of the show IP route Command That Was Performed on Router Building 1
|
Field |
Explanation |
|
O |
Indicates the protocol that derived the route. Possible values include the |
|
following: |
|
|
I—IGRP-derived |
|
|
R—RIP-derived |
|
|
O—OSPF-derived |
|
|
C—Connected |
|
|
S—Static |
|
|
E—EGP-derived |
|
|
B—BGP-derived |
|
|
i—IS-IS-derived |
|
|
140.100.17.192 |
Indicates the address of the remote network. |
|
[110/20] |
The first number in the brackets is the administrative distance of the information |
|
source; the second number is the metric for the route. |
|
|
via 140.100.17.129 |
Specifies the address of the next router to the remote network. |
|
00:07:44 |
Specifies the last time that the route was updated in hours:minutes:seconds. |
|
Ethernet0 |
Specifies the interface through which the specified network can be reached. |
These commands are useful to verify that the configuration has worked and that the OSPF network is functioning correctly. In a single-area environment, the full complexity of OSPF is not engaged. The full strength and complexity of OSPF come to the fore in the design and configuration of a multiarea network.
Continue reading here: RIP Version
Was this article helpful?
Readers' Questions
-
basso1 month ago
- Reply
-
garland8 months ago
- Reply
-
MADIHAH8 months ago
- Reply