Objective. Students will configure static routes and a basic single-area OSPF process on Cisco routers to achieve full end-to-end IP reachability across a three-router topology, verified by successful pings and 'show ip route' output.
This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.
VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.
A router forwards packets based on its routing table — a database of known networks and the paths to reach them. When a packet arrives, the router finds the best matching entry and sends the packet out the correct interface toward the destination. Without routing information for a remote network, the router drops the packet and the destination is unreachable. You build that routing information in two main ways: configuring routes by hand (static routing) or running a routing protocol that lets routers exchange information automatically (dynamic routing).
A static route is a manually entered instruction that tells a router: "To reach network X, send packets out interface Y, or toward next-hop address Z." Static routes are simple, predictable, and use no extra bandwidth for protocol messages. They are appropriate for small networks, stub networks with a single path, or situations where you want strict control.
IPv4 static route syntax on Cisco IOS:
```
ip route <destination-network> <subnet-mask> <next-hop-IP | exit-interface>
```
Example — R1 needs to reach the 10.0.2.0/24 network behind R2:
```
R1(config)# ip route 10.0.2.0 255.255.255.0 10.0.1.2
```
Here `10.0.1.2` is the IP address of R2's interface on the link shared with R1.
For a three-router linear topology (R1 — R2 — R3), each router needs static entries for every network it cannot see directly. R1 and R3 each need two static routes; R2 needs routes to the networks on the far sides of R1 and R3. A common mistake is forgetting both directions: pings travel out and back, so every router along the path must know how to reach both the source and destination networks.
Verify static routes with:
```
show ip route
```
Static entries appear with the code S in the routing table. Connected networks (interfaces already configured and up) appear with code C.
When a router learns about the same destination from more than one source, it uses administrative distance (AD) to choose which entry to trust. Lower AD wins. Common values:
Because static routes have AD 1, they override OSPF routes for the same destination unless you remove them first. In today's lab you will remove static routes before enabling OSPF so the protocol can populate the table cleanly.
If the routing table has overlapping entries — for example, 10.0.0.0/8 and 10.0.2.0/24 — the router forwards using the most specific (longest) prefix that matches the destination address. A /24 is more specific than a /8, so it wins even if the /8 has a lower AD. This rule applies regardless of which routing source supplied the entry.
Open Shortest Path First (OSPF) is a link-state, interior gateway routing protocol defined in RFC 2328. Link-state means each router builds a complete map of the network topology (the link-state database, LSDB), then runs the Dijkstra Shortest Path First (SPF) algorithm to calculate the best path to every destination. The resulting routes are installed in the routing table.
Key OSPF concepts for this lab:
Enabling OSPF (Cisco IOS):
```
Router(config)# router ospf 1
Router(config-router)# network <network-address> <wildcard-mask> area 0
```
The process ID (1 here) is locally significant — it does not need to match on neighboring routers. The wildcard mask is the inverse of the subnet mask: a /24 subnet mask of 255.255.255.0 becomes wildcard 0.0.0.255.
Verification commands:
```
show ip ospf neighbor ! confirms adjacency formed
show ip route ! OSPF routes appear as O entries
show ip ospf database ! shows the link-state database
```
Physical lab work with live Cisco routers involves low-voltage DC equipment and console cable connections. Follow these practices:
In this lab you will first build connectivity using static routes, confirm full reachability, then convert the same topology to OSPF and confirm that the routing table shows O entries. Finally, you will analyze a mixed routing table and answer questions about how the router selects paths. These skills appear on both the CompTIA Network+ and Cisco CCNA exams and are foundational to every networking role.
Answer each question, then check it. Nothing is recorded; this is your own practice.
A free tech program — complimentary, as our commitment to get America working. Help us build VoTechWorks. Tell us what works, what doesn’t, and what you want to learn.