show ip route static
Shows only the static routes that are installed in the routing table.
Written by a working field network engineer · CCNA, Security+, CySA+
Filters the routing table to static routes only. Use it to confirm a static route you just added is actually installed, not merely configured.
Example output
R2#show ip route static
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
S 172.16.0.0/16 [1/0] via 10.0.12.1Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.
Useful variants
show ip route static | include viashow running-config | include ip route
What each column or field means
| Field | Meaning |
|---|---|
S | A static route. S* is a static default route. |
[1/0] | Administrative distance 1 (the default for static routes) and metric 0. A floating static backup shows a higher AD, such as [5/0]. |
via 10.0.12.1 | The next hop. A route with only an exit interface shows “is directly connected, <interface>” instead. |
When it doesn’t look right
The route is in the running-config but not here.
The next hop is not reachable through any connected route, or the exit interface is down. Static routes are only installed when they can be used.
A floating static route never appears.
That is expected while the primary route exists: its higher AD keeps it out of the table until the primary disappears.
Gateway of last resort is not set on a branch router.
Add ip route 0.0.0.0 0.0.0.0 <next-hop>, or have the edge router advertise one with default-information originate in OSPF.
Related commands
Try it yourself
- IP Static Routing Setup (Pro)
- Several Static Routes on One Router (Pro)
- Default Route on an Edge Router (Pro)
- Specific Routes Alongside a Default (Pro)
- Adding the Missing Return Route (Pro)
- Or build the example network in the free Sandbox
Learn it in the CCNA path
- Static & Default Routes (3. IP Connectivity)
- Add static routes in both directions (3. IP Connectivity)
- Extend static routing across a transit router (3. IP Connectivity)
- Add a floating static backup route (3. IP Connectivity)
Topic
Static Routing — Read the routing table, add static and default routes in both directions, and prove reachability with ping and traceroute.