Users Guide

Layer 3 Routing Commands 1531
--------- ---- ----
0/25 RIPv2 RIPv2
show ip route
Use the show ip route command to display the current state of the routing
table. The output of the command also displays the IPv4 address of the
default gateway and the default route associated with the gateway.
This command deprecates the show ip route connected command.
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.