Users Guide

Layer 3 Routing Commands 1532
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-ON/N3100-ON/N3200-
ON 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.
Command History
Command updated in version 6.6 firmware.
Example
The following example displays the IPv4 address of the default gateway and
the default route associated with the gateway.
console#show ip route
Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, E - Externally Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2