show ip route

Last Updated : Aug 20, 2020 |

Displays information about the IP routing table. If no IP routes are specified, information about all IP routes are displayed.

Syntax

show ip route [ip_address [ip_mask]]

Parameters

Parameter

Description

Possible Values

Default Value

ip_address

The IP address of the routes

ip_mask

The IP mask of the routes

User level

read-only

Context

general

Examples

To display all routes:

Gxxx-001(super)# show ip route
Showing 10 rows
Network    Mask Interface         Next-Hop      Cost  TTL  Source
-------    ----  -----------     --------      ----- ----- ---   ------
0.0.0.0    0     FastEth     10.0.0.1        1    n/a   DHCP
1.0.0.0    8     Vlan     1.0     1.0.0.1        1    n/a   LOCAL
2.2.0.0    16   Dialer    1      9.9.9.50        1    n/a   STAT-LO-P
3.3.0.0    16   Dialer    1      9.9.9.50        1    n/a   STAT-HI-P
7.0.0.0    8     FastEth     10.0.0.1 DHCP   1    n/a   STAT-LO
8.0.0.0    8     Vlan     1.2    8.0.0.1         1    n/a    LOCAL
9.0.0.0    8     FastEth     10.0.0.1 DHCP   1    n/a   STAT-LO
10.0.0.0   8     Vlan     1.0    1.0.0.2         20   n/a   OSPF-E2
10.0.0.0   24    FastEth     10.0.0.2        1    n/a   LOCAL
11.0.0.0   8     Vlan     1.0    1.0.0.2        20    n/a   OSPF-E2
Note:

If DHCP address negotiation is enabled on the FastEthernet interface, the Source column displays DHCP.

If the ip route was statically established via the FastEthernet interface on which DHCP address negotiation was configured, the Next-Hop column displays DHCP in addition to the address.

To display route 137.32.50.13:

Gxxx-001(super)# show ip route 137.32.50.13

To display a range from route 137.44.50.13 to 255.255.255.0:

Gxxx-001(super)# show ip route 137.44.50.13 255.255.255.0