Concept Guide
show ip route
View information, including how they were learned, about the IP routes on the switch.
Syntax
show ip route [hostname | ip-address [mask] [longer-prefixes] | list prefix-
list [process-id] | connected | static | summary]
Parameters
ip-address (OPTIONAL) Specify a name of a device or the IP address of the device to view more
detailed information about the route.
mask (OPTIONAL) Specify the network mask of the route. Use this parameter with the IP
address parameter.
longer-prexes (OPTIONAL) Enter the keywords longer-prefixes to view all routes with a common
prex.
list prex-list (OPTIONAL) Enter the keyword list and the name of a congured prex list.
process-id (OPTIONAL) Specify that only OSPF routes with a certain process ID must be displayed.
connected (OPTIONAL) Enter the keyword connected to view only the directly connected routes.
static (OPTIONAL) Enter the keyword static to view only routes congured by the ip
route command.
summary (OPTIONAL) Enter the keyword summary.
Command Modes
• EXEC
• EXEC Privilege
Supported Modes All Modes
Command History
Version Description
9.9(0.0) Introduced on the FN IOM.
9.4(0.0) Supported on the FN I/O Aggregator.
8.3.17.0 Supported on the M I/O Aggregator.
Usage Information The following describes the show ip route all command in the following example.
Field Description
(undened) Identies the type of route:
• C = connected
• S = static
• R = RIP
• B = BGP
• IN = internal BGP
• EX = external BGP
• LO = Locally Originated
• O = OSPF
• IA = OSPF inter area
636 IPv4 Routing