CLI Guide

Layer 3 Routing Commands 1540
Syntax
show ip route [[ip-address [mask | prefix-length] [longer-prefixes] [vrf vrf-
name] [static] | [ecmp-groups] | [hw-failure] | [[vrf vrfname] track-table] |
[net-prototype]
ip-address—Specifies the network for which the route is to be displayed
and displays the best matching route for the address.
mask—Subnet mask of the IPv4 address in dotted quad notation.
prefix-length—Length of prefix, in bits. Must be preceded with a forward
slash (/). (Range: 0-32 bits.)
longer-prefixes—Indicates that the ip-address and subnet-mask pair
becomes the prefix, and the command displays the routes to the addresses
that match that prefix.
vrf-name—The name of the VRF instance on which the command
operates. If no VRF parameter is given, information for the default
(global) router instance is shown.
static—Display statically configured routes.
ecmp-groups—Display the ECMP groups in the routing table.
hw-failure—Display the routes that failed to be added to the hardware
forwarding table due to hash collisions or a table full condition.
track-table—Display the tracked static routes for the selected VRF or the
global routing instance.
net-prototype—Display the tracked static routes for the selected VRF or
the global routing instance.
Default Configuration
This command has no default configuration.
Command Mode
User Exec, Privileged Exec modes, Global Configuration mode and all
Configuration submodes
User Guidelines
The VRF identified in the parameter must have been previously created or an
error is returned.