Lesson 3 — IPv4 Static Routes: Next-Hop and Exit-Interface
Week 4 outline
- Week 4 overview
- Lesson 1Routing Fundamentals and the Forwarding Decision
- Lesson 2Connected and Local Routes
- QuizRouting Table Foundations
- Lesson 3IPv4 Static Routes: Next-Hop and Exit-Interface (current step)
- Lesson 4Default Routes and Floating Static Routes
- QuizStatic Routing & Failover
- LabStatic Routing Lab
- Lesson 5Longest-Prefix Match, AD, and Metrics
- CheckpointWeek 4 Checkpoint
IPv4 Static Routes: Next-Hop and Exit-Interface
Configure IPv4 static routes three ways — next-hop, exit-interface, and fully specified — explain recursive lookup, and diagnose a route that installs but does not forward.
Lesson orientation
What you'll learn (4 objectives)~44 min: video → lesson → check → apply → lab prep
Learning objectives
- Build an IPv4 static route with the ip route command using a next-hop IP, an exit interface, or both
- Explain recursive lookup and why a next-hop route requires a second route to resolve the next hop
- Justify next-hop on multi-access Ethernet and a fully specified route as the robust default
- Verify with show ip route and show ip route <destination>, and diagnose a route that installs but does not forward
Terms you will see
Time breakdown
- Read the notes20 min
- Static Routing Labs tool10 min
- Prediction practice6 min
- Lab — three-router static routing8 min
Assigned video

Static Routing (Day 11 part 2)
By Jeremy's IT Lab · Opens externally on YouTube
- Assigned watch
- ~8 min
The link opens in a new browser tab. Return here when you finish watching.
Watch for these concepts
- The ip route syntax choices and how each form appears in show ip route
- When next-hop is chosen over exit-interface
Go beyond the video
The assigned video introduces the idea. CCNA Practice Labs completes the learning path: clarify core concepts, explore how each device behaves, visualize the communication path, check your understanding, and prepare for hands-on lab work.
Watch the concept → understand it → visualize it → practice it → apply it.
One command, three ways to say where
A static route is you telling the router, by hand, that to reach this prefix it should go this way. Connected routes cover subnets on the router's own interfaces; everything one or more hops away needs either a static route or a dynamic protocol. Static routes are precise, predictable, and generate no protocol traffic — ideal for stub sites, default routes to an ISP, and small topologies — but every one is hand-maintained, so they do not scale to large or changing networks.
ip route <destination-prefix> <mask> { <next-hop-ip> | <exit-interface> | <exit-interface> <next-hop-ip> }| Form | Example | Use it when |
|---|---|---|
| Next-hop | ip route 10.1.4.0 255.255.255.0 10.1.2.2 | The common, safe default on Ethernet. The router still has to work out which interface leads to 10.1.2.2, which it does with a second lookup. |
| Exit-interface only | ip route 10.1.4.0 255.255.255.0 Gi0/1 | Clean on a true point-to-point link such as a serial line, where there is only one possible receiver. Avoid on multi-access Ethernet. |
| Fully specified | ip route 10.1.4.0 255.255.255.0 Gi0/1 10.1.2.2 | The most robust on Ethernet: no recursion is needed to find the interface, and the router still ARPs for the correct next hop. |
Recursive lookup: the second search you did not type
When you write ip route 10.1.4.0 255.255.255.0 10.1.2.2, the router installs the route — but 10.1.2.2 is not an interface, it is another router's address. To actually forward, the router must answer a second question: how do I reach 10.1.2.2? It searches the table again, finds 10.1.2.2 inside the connected route for 10.1.2.0/30 off Gi0/1, and now knows to send the frame out Gi0/1 and ARP for 10.1.2.2. That two-step match-then-resolve is recursive lookup.
Every router on the path needs a route — in both directions
This is where static routing bites people, and it bites twice. Routing decisions are made per-router and per-direction, so a packet only completes a round trip if every router along the way can forward it both out and back.
And even with every router able to forward outbound, the reply has to find its own way home. If the far router has no route back to the sender's subnet, the echo request arrives and the echo reply is dropped. The forward path was flawless; the missing return route killed it. That is why a single ip route command on one router is never enough for a two-way ping.
Configuring a three-router line, correctly
Topology: R1 — R2 — R3 in a line. R1's LAN is 10.1.1.0/24 off Gi0/0. The R1-to-R2 link is 10.1.2.0/30, with R1 at .1 and R2 at .2. The R2-to-R3 link is 10.1.3.0/30, with R2 at .1 and R3 at .2. R3's LAN is 10.1.4.0/24 off its Gi0/0. The goal is a working ping from a host on 10.1.1.0/24 to 10.1.4.7.
| Router | Connected subnets | Missing | Static routes required |
|---|---|---|---|
| R1 | 10.1.1.0/24, 10.1.2.0/30 | 10.1.3.0/30, 10.1.4.0/24 | One toward R3's LAN |
| R2 | 10.1.2.0/30, 10.1.3.0/30 | 10.1.1.0/24, 10.1.4.0/24 | Two — one in each direction |
| R3 | 10.1.3.0/30, 10.1.4.0/24 | 10.1.1.0/24, 10.1.2.0/30 | One back toward R1's LAN |
! R1 — reach R3's LAN via R2
R1(config)# ip route 10.1.4.0 255.255.255.0 10.1.2.2
! R2 — the middle router needs BOTH directions
R2(config)# ip route 10.1.4.0 255.255.255.0 10.1.3.2
R2(config)# ip route 10.1.1.0 255.255.255.0 10.1.2.1
! R3 — the return route back to R1's LAN
R3(config)# ip route 10.1.1.0 255.255.255.0 10.1.3.1R1# show ip route static
10.0.0.0/8 is variably subnetted, 6 subnets, 3 masks
S 10.1.4.0/24 [1/0] via 10.1.2.2
R1# show ip route 10.1.4.7
Routing entry for 10.1.4.0/24
Known via "static", distance 1, metric 0
Routing Descriptor Blocks:
* 10.1.2.2
Route metric is 0, traffic share count is 1Read the installed route: S marks it static, [1/0] is administrative distance 1 and metric 0 — static routes carry AD 1 by default and no meaningful metric — and via 10.1.2.2 names the next hop. show ip route static filters to only the routes you configured, which is the fastest way to audit your own work. show ip route 10.1.4.7 proves the forwarding decision for one specific host.
When a configured route never appears
What you should retain
- ip route <prefix> <mask> then a next hop, an exit interface, or both — three forms of one command.
- Next-hop is the safe default on Ethernet; exit-interface-only suits point-to-point serial; fully specified is most robust when you want to pin the interface.
- Recursive lookup: a next-hop route triggers a second search to resolve the next hop, usually against a connected route.
- Every router on the path needs a route to the destination — including the middle ones, which are not exempt.
- Every forward route needs a matching return route, or the ping fails in one direction only.
- Static routes carry AD 1 and appear as S <prefix> [1/0] via <next-hop>.
- Verify with show ip route static, and show ip route <destination> for the exact winning entry.
Before you read on
Same R1 — R2 — R3 line. Predict each outcome. (1) Only R1 has ip route 10.1.4.0 255.255.255.0 10.1.2.2, and you ping from R1's LAN to 10.1.4.7. (2) R2 and R3 then get their routes too. (3) R1's route is rewritten as exit-interface-only — ip route 10.1.4.0 255.255.255.0 GigabitEthernet0/1 — on the Ethernet link to R2.
See it happen
Static Routing Labs
Use the command builder to assemble next-hop, exit-interface, and fully specified routes, and compare how each appears in the table. The builder flags a malformed ip route before you commit it, which is a faster feedback loop than mistyping one into a live router.
Prepare for the lab
Week 4 Lab — Static Routing
Build the R1 — R2 — R3 topology from this lesson with point-to-point /30 transit links, then add static routes until every LAN can reach every other LAN and verify with show ip route and end-to-end ping.
This lesson prepares you to:
- • Configuring a next-hop static route to a remote subnet
- • Adding the return route so a ping succeeds in both directions
- • Giving the middle router its two routes rather than assuming it is already covered
- • Replacing an exit-interface-only route with a fully specified one on Ethernet
Take the Static Routing & Failover quiz first — it checks exactly the material this lab assumes.
Open the labStudy deeper
Topic guides extend this lesson — they do not replace the first-party walkthrough above.
Routing Protocols
For the full static-routing syntax reference and the next-hop-on-Ethernet guidance in more depth
