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