Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Network Route · IPv4

Direct answer

A network static route sends a specific prefix — not a default — towards a next hop: ip route 10.50.0.0 255.255.0.0 10.0.0.2.

When to use this

Use it to reach a particular remote network that no routing protocol advertises to this router.

First 30 seconds

1. Configured (show running-config | include ip route) but not in show ip route static?

2. → show ip route <next hop>: the next hop is not reachable.

3. Tracked route → show track <n>: down?

4. Installed but not used → a longer prefix wins, or a lower distance.

5. Interface-only route on Ethernet → add the next hop address.

Operational verification

static route configured → next hop resolvable through another route → track up (if used) → no better route for the same prefix → installed with distance 1 (or configured) → CEF forwards

Evidence · next step

Check full RIB context and next-hop/interface reachability before changing the destination/mask.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE
Key commandip route <network> <mask> <next-hop>
Scope / prerequisiteUse it to reach a particular remote network that no routing protocol advertises to this router.
Reference · 2
What next?3 suggested next steps
Catalog command links2
Evidence1
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification and output interpretation Verify boundary

Use show ip route <prefix> to verify the route is installed, its administrative distance/metric, next hop and outgoing interface. show ip route static provides the broader static set, while show ip cef <destination> shows the forwarding resolution for an actual address inside the prefix. Confirm the recursive next hop itself is resolvable if the route uses one. Testing an address inside the prefix verifies more than inspecting configuration alone, but return routing and policy still affect end-to-end results. If a configured static route is absent from the RIB, check next-hop recursion/interface state before assuming the command was rejected.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

command output · 1
Command lookup Jump straight to Cisco syntax
Key points

A static route with a next hop is installed only if that next hop is reachable through another route. Its distance is 1, so it beats every protocol unless configured higher. On Ethernet, give a next hop address, not just the interface.

Key checks
  • show ip route static — the static routes installed.
  • show running-config | include ip route — those configured.
  • show ip route <next hop> — whether the next hop is reachable.
  • show ip cef <prefix> — forwarding for the prefix.
  • show track — if the route is tied to a track object.
ReferenceWhat it is1 section · depth on demand

What it is

An IPv4 static network route matches a network and mask and forwards matching destinations toward a configured next-hop address or exit interface. It is more specific than a default route and less specific than any longer matching subnet/host route.

ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

IPv4 network route: a static route for a whole prefix

A network route covers a subnet or summary, for example 10.30.0.0/16. Cisco's static next-hop technote recommends the fully specified form, with outgoing interface and next hop.

R1(config)# ip route 10.30.0.0 255.255.0.0 GigabitEthernet0/0/1 10.255.0.2 name TO-SITE-B
R1(config)# ip route 10.40.0.0 255.255.252.0 10.255.0.6
R1# show ip route 10.30.12.7
Routing entry for 10.30.0.0/16
  Known via "static", distance 1, metric 0
  Routing Descriptor Blocks:
  * 10.255.0.2, via GigabitEthernet0/0/1
R1# show ip cef 10.30.12.7
10.30.0.0/16
  nexthop 10.255.0.2 GigabitEthernet0/0/1

Longest prefix match

The router picks the most specific matching route, whatever the source:

RoutePrefix lengthUsed for 10.30.12.7?
0.0.0.0/0 static0Only if nothing longer matches
10.30.0.0/16 static16Yes, unless a longer one exists
10.30.12.0/24 OSPF24Yes: longest match wins over the /16

Administrative distance only decides between routes for the same prefix and length.

Mask must match the network

ip route requires the network address to be consistent with the mask. A network like 10.30.12.0 with mask 255.255.0.0 is rejected with %Inconsistent address and mask.

Summary routes

A static route for a summary (for example 10.30.0.0/16 when the site uses /24s) keeps the routing table small. Traffic to unused subnets in the summary is still forwarded to the next hop, which may loop it back. On the receiving router, a static route to Null0 for the summary discards traffic to unused space:

R2(config)# ip route 10.30.0.0 255.255.0.0 Null0 254

Removal conditions (from the technote)

With a next hop, the route stays as long as the next hop is reachable through any route. With an exit interface, it disappears when the interface goes down.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

An IPv4 network route is a static route to a specific destination network, such as 10.50.0.0/16, through a next hop or interface.

ip route 10.50.0.0 255.255.0.0 10.0.0.2 name TO-SITE-B
show ip route 10.50.0.0
show ip route static

Documented example, not captured output.

The name option documents the purpose of the route in the configuration.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

State model and protocol mechanics

An IPv4 static network route describes reachability to a prefix larger than a single host, for example 192.0.2.0/24. The configured destination and mask define the set of addresses matched by the route. A next-hop-only static route normally requires recursive lookup to resolve that next hop to an outgoing interface, while an exit-interface route ties forwarding more directly to the interface and can have different adjacency implications on multiaccess networks. Once installed in the RIB, the route participates in normal longest-prefix-match selection. Administrative distance decides between routes to the same prefix from different sources; it does not override a more-specific prefix. CEF/FIB state is then derived for actual forwarding.

Limits and common misconceptions

A static route line in configuration is not evidence that the route is installed or being used. Administrative distance is compared only among candidate routes for the same destination prefix; a more-specific route wins forwarding by longest-prefix match regardless of a less-specific route’s lower AD. A route can be installed while the remote network is unreachable beyond the next hop because static routing does not inherently validate the remote destination. Interface-up state is also insufficient on multi-hop paths. Keep configured candidate, RIB installation, FIB resolution, next-hop adjacency and remote return path distinct.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Configure the narrowest prefix that represents the intended remote network and use a next hop that is genuinely reachable through the current routing table. On point-to-point links an exit interface may be unambiguous; on Ethernet, a next-hop address is often clearer and avoids assumptions about adjacency resolution for every destination. A fully specified route can include both. Keep static routes intentional and documented because they do not automatically follow topology changes unless tracking or another mechanism is used. Avoid accidental overlap that creates surprising longest-prefix-match behavior. If the static route is a backup to a dynamic protocol, set administrative distance deliberately rather than relying on defaults.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 791

Authoritative/upstream documentation reviewed for bounded claims in Routing → Static Routing → IPv4 → Network Route. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc791.html · confidence 94%
Embedded reference data

Quick lookup tables

Next hop vs exit interface

Choose the route form with the link and resolution model in mind

FormStrengthWatch for
Next-hop addressClear neighboring-router intent; recursive resolutionNext-hop route must remain resolvable
Exit interfaceDirect interface dependencyOn multiaccess links, Layer-2 resolution/proxy-ARP behavior can be undesirable or misleading
Point-to-point exit interfaceNatural one-peer forwarding modelInterface state still controls usability

Network Route · operational reference

Compact state and interpretation boundaries for fast lookup.

Static-route layerMeaning
Prefix/maskDestination set matched
Next hopRecursive forwarding target
RIB entryCandidate installed for selection
CEF adjacencyActual forwarding resolution
Confirmation

Confirm action

Continue?