Command:

show ip route

Mode:

Router>


Syntax:

show ip route [ address[ mask] [ longer-prefixes]] | [ protocol[ process-id]] | [ list access-list-number| access-list-name]


Syntax Description:

  address

(Optional) Address about which routing information should be displayed.

mask

(Optional) Argument for a subnet mask.

longer-prefixes

(Optional) The address and mask pair becomes a prefix and any routes that match that prefix are displayed.

protocol

(Optional) Name of a routing protocol, or the keyword connected, static, or summary. If you specify a routing protocol, use one of the following keywords: bgp, egp, eigrp, hello, igrp, isis, ospf, or rip.

process-id

(Optional) Number used to identify a process of the specified protocol.

list

(Optional) The list keyword is required to filter output by an access list name or number.

access-list-name

(Optional) Filters the displayed output of the routing table based on the specified access list name.

access-list-number

(Optional) Filters the displayed output of the routing table based on the specified access list number.

 


Command Description: 

Use the show ip routeEXEC command to display the current state of the routing table.


Example:


Router#
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

 


  C 1.0.0.0/8 is directly
connected, Serial0

  O 2.0.0.0/8 [110/128] via
1.1.1.2, 00:07:11, Serial0

  3.0.0.0/32 is subnetted, 1
subnets

  O 3.1.1.1 [110/129] via
1.1.1.2, 00:07:11, Serial0


Misconceptions:

 

None


Related commands:

 

ip route

 

ip default-network


© Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education







Converted from CHM to HTML with chm2web Pro 2.85 (unicode)