![Cisco Nexus 3548 series Command Reference Manual Download Page 525](http://html.mh-extra.com/html/cisco/nexus-3548-series/nexus-3548-series_command-reference-manual_2609162525.webp)
505
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Show Commands
show ip route
show ip route
To display routes from the unicast Routing Information Base (RIB), use the
show ip route
command.
show ip route
[
all
|
addr
|
hostname
|
prefix
|
route-type
|
interface
type
number
|
next-hop
addr
]]
[
vrf
vrf-name
]
Syntax Description
Command Default
None
Command Modes
Any command mode
Command History
Examples
This example shows how to display the route table:
switch(config)#
show ip route all
Related Commands
all
(Optional) Displays all routes.
addr
(Optional) IPv4 address. The format is x.x.x.x.
hostname
Hostname. The
name
can be any case-sensitive, alphanumeric string up to 80
characters.
prefix
(Optional) IPv4 prefix. The format is x.x.x.x/length. The length range is from 1 to 32.
route-type
(Optional) Type of route. Use
?
to see the list of types.
interface
type
number
(Optional) Displays the routes for an interface. Use
?
to see the supported interfaces.
next-hop
addr
(Optional) Displays routes with this next-hop address. The format is x.x.x.x.
vrf
vrf-name
(Optional) Specifies the virtual router context (VRF) name. The name can be any
case-sensitive, alphanumeric string up to 32 characters.
Release
Modification
5.0(3)A1(1)
This command was introduced.
Command
Description
clear ip route
Clears entries in the route table.