Know the next hop. Prove the return path.
Phase 01 explained the first Ethernet frame, and Phase 02 traced the campus switching path. Now a Layer 3 device decides how to move packets between networks. We will distinguish learned routes, installed routes, actual forwarding and application success.
Prefer to begin with frames and VLANs? Start at Phase 01 → or revisit Phase 02 →
JUMP TO SECTIONChoose a lesson section
Where do routing table entries come from?
A router may learn networks from connected Layer 3 interfaces, configured static routes, or a dynamic routing protocol such as OSPF. These sources contribute candidate routes. The router evaluates eligibility, next-hop resolution, administrative preference and protocol-specific metrics before installing usable routes into the Routing Information Base (RIB). The forwarding plane uses installed forwarding information to actually move traffic.
Connected
An operational Layer 3 interface gives the router a connected subnet route.
An up interface and installed route do not prove remote endpoints work.Static
An administrator supplies a destination prefix and an exit interface or next hop.
The next hop must resolve or the route may not install; consider change approval and backup.OSPF
Routers exchange link-state information and calculate routes within their OSPF domain.
A FULL neighbor does not prove every route or application is reachable.Different operating systems and vendors implement their routing databases differently. The examples in this phase use familiar Cisco IOS/IOS XE conventions. A route entry is evidence of the planned next hop, not proof that the next hop, reverse path or destination service actually works.
Longest-prefix matching is not administrative distance.
Two separate decisions are often confused. During route installation, an OSPF and a static route advertising the same destination prefix compete as candidates. In a conventional Cisco configuration, the lower administrative distance (AD) wins when the route is usable. For example, static AD 1 generally beats OSPF AD 110 for an identical 10.70.20.0/24.
During packet forwarding, the router selects the longest matching prefix from the installed routes. A valid OSPF 10.70.20.128/25 beats the installed static 10.70.20.0/24 for destination 10.70.20.180, because /25 is more specific. At this stage AD doesn't override prefix length.
Choose the best candidate for each identical prefix (source trust and usable next hop). Then compare destination matches by prefix length to forward the packet. Protocol cost matters within the relevant routing process and selection context; it is not a universal cost comparison across unrelated routing protocols.
For additional vendor-specific detail, see Cisco's Administrative Distance explanation ↗, which distinguishes RIB selection from forwarding-table lookup.
Every route has prerequisites.
Connected networks ordinarily appear when an appropriate Layer 3 interface is operational. A static route names a destination prefix and the next hop or exit interface. A default route (0.0.0.0/0) is a fallback for destinations with no more-specific match; it does not override an available /16 or /24 just because it has a lower administrative distance.
When the selected next hop is an IPv4 neighbor, the router normally requires a valid Layer 2 neighbor mapping. A configured route whose next hop cannot be resolved or whose interface is unavailable may fail to install, or may be unusable according to platform and routing behavior. Always correlate route status, adjacency, interface and the forwarding path.
Inter-VLAN routing still needs a Layer 2 foundation.
Finance VLAN 10 (10.50.10.0/24) and Servers VLAN 20 (10.50.20.0/24) are separate broadcast domains. A multilayer switch can route between their VLAN interfaces (SVIs), or an external router can perform that role over an appropriate 802.1Q design. Each client uses an authorized gateway address and the correct local route.
Even if the route table correctly lists both connected networks, an access VLAN mismatch, an SVI that is down, an ACL, a firewall policy or a server with the wrong return gateway can still prevent communication. The job is to determine which part of the path actually fails.
What OSPF neighbors and LSAs actually tell us.
Open Shortest Path First is a link-state interior gateway protocol. Within an OSPF area, participating routers exchange link-state advertisements (LSAs), build a link-state database (LSDB) and run a shortest-path-first calculation to derive routes. A metric such as OSPF cost influences the selected path among eligible OSPF alternatives.
Compatible peers discover each other through OSPF Hello traffic. A neighbor state such as FULL depends on interface/network type and the adjacency context.
Adjacent routers synchronize relevant LSDB information. A FULL adjacency doesn't automatically mean every network you expected is advertised.
Calculated OSPF candidates may compete with connected/static routes for an identical prefix. Only the selected eligible routes appear in the installed routing table.
An OSPF neighbor being FULL is evidence of control-plane adjacency, not proof that 10.70.50.0/24 was advertised, selected into the RIB, forwarded correctly, or permitted through security policy. Verify the LSDB, RIB, next-hop resolution, return path and service separately.
OSPF areas scope certain link-state flooding and SPF processing. Area 0 is the backbone in a conventional multi-area OSPF design; Area Border Routers (ABRs) connect areas and can advertise reachability between them. A production design may include filtering and summarization, so never assume all LSAs appear identically in every area.
NAT/PAT changes addressing, not the routing requirements.
In a typical outbound IPv4 NAT/PAT deployment, many inside clients share an approved outside address. The gateway translates the private source IP and often the source port for each session. The external destination IP and destination port remain unchanged in this simple example. More complex NAT and proxies can behave differently, so document the actual design.
These addresses are examples, not public endpoints to test. The translation table can indicate that a mapping was created, but it does not prove that a reply came back, passed stateful policy, reached the inside client or completed a TLS/application workflow.
A successful investigation checks the inside/outside interface roles, egress route, translated addresses, any firewall ACL/state, reverse route and the actual application result. Don't indiscriminately clear translation tables or open wide permit rules as a substitute for evidence.
DHCP relay bridges the broadcast boundary.
A new DHCPv4 client may broadcast DHCPDISCOVER because it doesn't yet have an IPv4 address. Such broadcasts don't naturally traverse a routed VLAN boundary. A configured DHCP relay on the client-facing Layer 3 interface can forward messages toward an off-subnet DHCP server.
In conventional DHCPv4 relay behavior, the giaddr relay-agent field helps the server identify the client network and direct replies to the relay. Scope selection can also depend on server policy or relay options, so giaddr is not an absolute guarantee of a particular scope. A relay target being configured says nothing about whether the scope has free addresses or whether clients completed DORA.
For standards background, see RFC 2131 — DHCP ↗. In our example, a correct result means the client receives an approved lease, gateway and DNS information, and actually uses the intended service—not merely that DHCPOFFER appeared.
Make the forwarding decision yourself.
Try each destination in the route-selection workbench. Notice when connected routes win, why a static route is installed instead of an OSPF route for the same prefix, and how an installed, more-specific OSPF /25 still wins in forwarding over an installed static /24. Then withdraw the /25 and observe the new best match.
Choose the route, not just the protocol.
Model a single fictional Cisco-style IPv4 router. First pick the best candidate for each exact prefix; then forward to the longest matching installed prefix.
Try a destination or use a sample. Addresses are hypothetical. This model assumes next hops are reachable and has no policy routing, ECMP or route filtering.
| Source | Installed prefix | AD / metric | Next hop | Selected path? |
|---|---|---|---|---|
| O | 10.70.20.128/25More-specific installed OSPF subnet | 110 / 35 | 10.1.0.3 | Most specific |
| C | 10.50.10.0/24Finance client subnet | 0 / 0 | Direct · Vlan10 | — |
| C | 10.50.20.0/24Server subnet | 0 / 0 | Direct · Vlan20 | — |
| C | 10.1.0.0/24Campus transit | 0 / 0 | Direct · Gi0/0 | — |
| S | 10.70.20.0/24Static source wins for this exact /24 | 1 / 0 | 10.1.0.4 | Also matches |
| O | 10.70.0.0/16Remote branch aggregate | 110 / 40 | 10.1.0.2 | Also matches |
| S* | 0.0.0.0/0Fallback route | 1 / 0 | 10.1.0.254 | Also matches |
For 10.70.20.180, the most specific matching installed prefix is 10.70.20.128/25. This example forwards toward next hop 10.1.0.3. A selected route alone does not prove ARP resolution, policy approval, the return path, or application success.
Matching installed routes: 10.70.20.128/25 → 10.70.20.0/24 → 10.70.0.0/16 → 0.0.0.0/0. Prefix length determines forwarding. Administrative distance and metric were used to install competing candidate routes for the same prefix—not to override a more-specific forwarding entry.
The static and OSPF entries both advertise 10.70.20.0/24. With the illustrated Cisco-style defaults and usable next hops, static AD 1 wins over OSPF AD 110 for that identical prefix. But an installed OSPF /25 can still outrank the static /24 during forwarding. Withdrawing the /25 reveals how the chosen next hop changes.
It's not always the routing protocol.
Work through four synthetic operational tickets: OSPF route selection, NAT/PAT, DHCP relay and an asymmetric return path. Each contains three diagnostic choices. Every response includes its reasoning; you can revise answers and repeat the incident without saving anything.
Investigate the failure, not the green indicator.
Four incidents, twelve decisions. Read the evidence and choose the safest next diagnostic or validation step. No network commands are executed.
SW-CORE can reach the OSPF neighbor interface, but a branch /24 has disappeared from its routing table.
Check what actually formed
show ip ospf neighbor → 10.10.10.2 FULL/- on Gi0/0; show ip route 10.70.50.0 → route not in RIB.Illustrative check: show ip ospf database
Gather enough evidence to justify the next action.
Is there a specific installed route?
Check destination/prefix, selected next hop and exit interface. A default route can mask a missing specific entry.
Can the next hop be resolved?
Verify link status, ARP or IPv6 Neighbor Discovery, VLAN and adjacency. Installed RIB does not equal successful frame delivery.
Is forwarding permitted?
Consider routing policy, ACLs, stateful session tracking, NAT and device-specific forwarding behavior. Avoid removing safeguards as a shortcut.
How does traffic find its way back?
Inspect reverse routes, asymmetric stateful inspection and the intended source IP after any translation.
Does the actual workflow succeed?
Test name resolution, transport, TLS and the application outcome independently. Document uncertainty and non-regression.
Useful read-only commands should answer a specific question. On a Cisco-style router, the following checks support diagnosis. Syntax, output, privileges and defaults vary by platform/software, and some commands may expose sensitive network information. Use only approved devices and authorizations.
show ip routeView installed routes and their sources; distinguish the RIB from learned-but-not-installed candidates.
show ip route 10.70.20.180Inspect the selected path toward a specific destination on supported Cisco IOS/IOS XE devices.
show ip ospf neighborCheck neighbor state and interface; adjacency does not guarantee every network is advertised.
show ip ospf databaseCompare link-state information when the expected OSPF route is absent.
show ip nat translationsLook for the expected address/port mapping. A mapping alone does not confirm the return path.
show ip nat statisticsCheck interface roles, hit counters and translation pool behavior where supported.
show running-config interface vlan 30Inspect the SVI and configured IPv4 DHCP relay target within approved read access.
traceroute 10.70.20.180Collect hop-by-hop observations, recognizing filtering and asymmetric routes may hide replies.
Before changing a static route, OSPF configuration, relay target or NAT policy: capture the baseline, understand blast radius, seek the required approvals, define rollback and validation. Afterward, test the original business workflow and unaffected adjacent services. A green command output is not a completed incident.
Learn → Practice → Lab → Troubleshoot.
The next guided milestone is Routing & Services Diagnosis Practice. It uses different scenarios from both this lesson and Networking Foundations, focusing on operational route and service evidence.
Finish the routing lesson and workbenches first. Then diagnose new routing and service evidence in Applied Practice.
