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?

0 0

Readers' Questions

  • basso
    What does the command show ip route do when executed on a router?
    1 month ago
  • When the command "show ip route" is executed on a router, it displays the routing table of the router. The routing table contains information about the paths that the router can use to forward IP packets to different network destinations. The output of this command typically includes information like the destination network and subnet mask, the next hop IP address or interface used to reach that network, the administrative distance, and the metric or cost associated with the route. It also shows whether the route is directly connected or learned from other routers through routing protocols like OSPF, BGP, or static routes. This command is useful for network administrators to check and troubleshoot routing issues, validate the routing table entries, and verify the routes being used by the router for forwarding IP traffic.
    • garland
      What command should you enter to see the routing table on a cisco router?
      8 months ago
    • show ip route
      • MADIHAH
        What command can be used on a cisco router to view the routing table?
        8 months ago
      • The command "show ip route" can be used to view the routing table on a Cisco router.