Use it to reach a particular remote network that no routing protocol advertises to this router.
Network Route · IPv4
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.
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.
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
Operational reference
Fast context before you go deeper.
ip route <network> <mask> <next-hop>Primary Commands
Configuration and operational commands for this Topic.
ip route <network> <mask> <next-hop>ReferenceConfigure a static route to a network through a next-hop address.
Use when: Install explicit reachability toward a remote IPv4 network through a neighboring router/next hop.
Quick note: Verify installation with show ip route static and selection context with show ip route; if installed but traffic fails, continue to forwarding/return-path evidence.
ip route <network> <mask> <interface>ReferenceConfigure a static route out an interface; on multi-access links prefer a next-hop address.
Use when: Create a static path whose usability follows an explicitly named outgoing interface.
Quick note: Verify the route in the RIB, interface state and resulting adjacency behavior rather than stopping at configuration.
Cisco IOS / IOS XE · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
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.
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:
| Route | Prefix length | Used for 10.30.12.7? |
|---|---|---|
| 0.0.0.0/0 static | 0 | Only if nothing longer matches |
| 10.30.0.0/16 static | 16 | Yes, unless a longer one exists |
| 10.30.12.0/24 OSPF | 24 | Yes: 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.
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.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%Quick lookup tables
Next hop vs exit interface
Choose the route form with the link and resolution model in mind
| Form | Strength | Watch for |
|---|---|---|
| Next-hop address | Clear neighboring-router intent; recursive resolution | Next-hop route must remain resolvable |
| Exit interface | Direct interface dependency | On multiaccess links, Layer-2 resolution/proxy-ARP behavior can be undesirable or misleading |
| Point-to-point exit interface | Natural one-peer forwarding model | Interface state still controls usability |
Network Route · operational reference
Compact state and interpretation boundaries for fast lookup.
| Static-route layer | Meaning |
|---|---|
| Prefix/mask | Destination set matched |
| Next hop | Recursive forwarding target |
| RIB entry | Candidate installed for selection |
| CEF adjacency | Actual forwarding resolution |