Administrator Guide

Table Of Contents
Layer 3 Routing Commands 1525
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.
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.
The VRF parameter is only available on the N3000/N3100/N4000 series
switches.
If the subnet mask is specified, then only routes with an exact match are
displayed. For example:
show ip route 192.168.2.0 /24
If only an IP address is specified, the best route for the IP address is displayed.
For example:
show ip route 192.168.2.0
If the longer-prefixes option is specified, then the subnets within an
aggregate are displayed. For example:
show ip route 192.168.2.0 /23 longer-prefixes
The numbers in the brackets indicate the route preference (administrative
distance) and metric respectively. The metric is specific to the originating
protocol. Connected routes have a preference of 0 and static routes have a
preference of 1.
Example
The following example displays the IPv4 address of the default gateway and
the default route associated with the gateway.
console#show ip route