show ip route static

Last Updated : Nov 06, 2012 |

Displays static routes. If no routes are specified, all routes are displayed.

Syntax

show ip route static [ip_addr [mask]]

Parameters

Parameter

Description

Possible Values

Default Value

ip_addr

The IP address of the routes

mask

The IP mask of the routes

User level

read-only

Context

general

Example

To display all static routes:

Gxxx-001(super)# show ip route static

To display static route 137.32.50.13:

Gxxx-001(super)# show ip route static 137.32.50.13

To display the range of static routes from 137.44.50.13 to 255.255.255.0:

Gxxx-001(super)# show ip route static 137.44.50.13 255.255.255.0
Gxxx-001(super)# show ip route static
Showing 1 rows
Network  Mask Interface   Next-Hop     Cost  Pref  Perm  Active
-------  ---- ----------  -----------  ----  ----  ----  -------
0.0.0.0   0   FastEth 1  149.49.75.1    1   low    No    Yes
where Pref is the preference, and Perm is Permanent.