
CP6923
Routing Commands
Page 4 - 13
CP6923 CLI Reference Manual
4.2.12
show ip route
This command displays the routing table. The
<ip-address>
specifies the network for which the route is to be
displayed and displays the best matching best-route for the address. The
<mask>
specifies the subnet mask for the
given
<ip-address>
. When you use the
longer-prefixes
keyword, the
<ip-address>
and
<mask>
pair
becomes the prefix, and the command displays the routes to the addresses that match that prefix. Use the
<protocol>
parameter to specify the protocol that installed the routes. The value for
<protocol>
can be
connected
,
ospf
,
rip
,
static
, or
bgp
. Use the
all
parameter to display all routes including best and non-best
routes. If you do not use the
all
parameter, the command only displays the best route.
The
show ip route
command displays the routing tables in the following format:
Code IP-Address/Mask [Preference/Metric] via Next-Hop, Route-Timestamp, Interface
The columns for the routing table display the following information:
IP Mask
The IP mask of the routing interface in 32-bit dotted decimal format.
Netdir Bcast
Indicates if IP forwards net-directed broadcasts on this interface. Possible values are Enable
or Disable.
MultiCast Fwd
The multicast forwarding administrative mode on the interface. Possible values are Enable or
Disable.
Note:
If you use the
connected
keyword for
<protocol>
, the
all
option is not available because there
are no best or non-best connected routes.
Format
show ip route
[{<ip-address> [<protocol>] | {<ip-address> <mask> [longer-
prefixes] [<protocol>] | <protocol>} [all] | all}]
Modes
•
Privileged EXEC
•
User EXEC
Term
Definition
Route Codes
The key for the routing protocol codes that might appear in the routing table output.
Term
Definition
Code
The codes for the routing protocols that created the routes.
IP-Address/Mask
The IP-Address and mask of the destination network corresponding to this route.
Preference
The administrative distance associated with this route. Routes with low values are preferred
over routes with higher values.
Metric
The cost associated with this route.
via Next-Hop
The outgoing router IP address to use when forwarding traffic to the next router (if any) in the
path toward the destination.
Route-Timestamp
The last updated time for dynamic routes. The format of Route-Timestamp will be
•
Days:Hours:Minutes if days > = 1
•
Hours:Minutes:Seconds if days < 1
Interface
The outgoing router interface to use when forwarding traffic to the next destination. For reject
routes, the next hop interface would be Null0 interface.
Term
Definition
Summary of Contents for CP6923
Page 4: ...Page iv ...
Page 35: ...Using the Command Line Interface Chapter 1 1 Page 1 1 CP6923 CLI Reference Manual CP6923 ...
Page 44: ...Using the Command Line Interface CP6923 CP6923 CLI Reference Manual Page 1 10 ...
Page 45: ...Switching Commands Chapter 1 2 Page 2 1 CP6923 CLI Reference Manual CP6923 ...
Page 174: ...Switching Commands CP6923 CP6923 CLI Reference Manual Page 2 130 ...
Page 175: ...Quality of Service Commands Chapter 1 3 Page 3 1 CP6923 CLI Reference Manual CP6923 ...
Page 213: ...Routing Commands Chapter 1 4 Page 4 1 CP6923 CLI Reference Manual CP6923 ...
Page 285: ...Multicast Commands Chapter 1 5 Page 5 1 CP6923 CLI Reference Manual CP6923 ...
Page 314: ...Multicast Commands CP6923 CP6923 CLI Reference Manual Page 5 30 ...
Page 315: ...Utility Commands Chapter 6 Page 6 1 CP6923 CLI Reference Manual CP6923 ...
Page 387: ...Management Commands Chapter 1 7 Page 7 1 CP6923 CLI Reference Manual CP6923 ...
Page 428: ...Management Commands CP6923 CP6923 CLI Reference Manual Page 7 42 ...
Page 429: ...CP6923 Page A 1 CP6923 CLI Reference Manual Getting Help Appendix A ...
Page 434: ...CP6923 Page B 1 CP6923 CLI Reference Manual FASTPATH log messages Appendix B ...
Page 450: ...CP6923 Page C 1 CP6923 CLI Reference Manual List of Commands Appendix C ...