G
LOBAL
R
OUTING
C
ONFIGURATION
37-5
show ip route
This command displays information in the IP routing table.
Syntax
show ip route [config | address [netmask]]
• config – Displays all static routing entries.
• address – IP address of the destination network, subnetwork or host
for which routing information is to be displayed.
• netmask - Network mask for the associated IP subnet. This mask
identifies the host address bits used for routing to specific subnets.
Command Mode
Privileged Exec
Command Usage
If the address is specified without the netmask parameter, the router
displays all routes for the corresponding natural class address
(page 37-12).
Example
Console#show ip route
Ip Address Netmask Next Hop Protocol Metric Interface
--------------- --------------- --------------- ---------- ------ ---------
0.0.0.0 0.0.0.0 10.2.48.102 static 0 1
10.2.48.2 255.255.252.0 10.2.48.16 local 0 1
10.2.5.6 255.255.255.0 10.2.8.12 RIP 1 2
10.3.9.1 255.255.255.0 10.2.9.254 OSPF-intra 2 3
Total entry: 4
Console#
Table 37-3 show ip route - display description
Field Description
Ip Address IP address of the destination network, subnetwork, or host. Note that
the address 0.0.0.0 indicates the default gateway for this router.
Netmask Network mask for the associated IP subnet.
Next Hop IP address of the next hop (or gateway) used for this route.
Protocol The protocol which generated this route information. (Values: static,
local, RIP, OSPF)