Skip to main content
APPLIED NETWORK ENGINEERING / PHASE 03

The route exists.
Does the service work?

Learn how a router decides where traffic goes, how OSPF and static routes compete, and why NAT, DHCP relay, security policy and the return path can turn an apparently healthy route into a broken user experience.

Intermediate → AppliedInteractive route selector4 incident scenariosRouting before remediation
PHASE 03 / ROUTING & NETWORK SERVICES

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.

By the end, you should be able toSelect the longest matching installed IPv4 prefix, explain administrative distance for identical routes, verify OSPF and inter-VLAN routing, reason through NAT/PAT and DHCP relay, and construct a safe end-to-end validation plan.

Prefer to begin with frames and VLANs? Start at Phase 01 → or revisit Phase 02 →

01 / THE ROUTING INFORMATION BASE

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.

C

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.
S

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.
O

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.

02 / FIRST INSTALL, THEN FORWARD

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.

Think in two stages

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.

03 / CONNECTED, STATIC & DEFAULT

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.

DIRECT10.50.20.0/24Connected on server SVI Vlan20
SPECIFIC10.70.20.0/24Static next hop 10.1.0.4
FALLBACK0.0.0.0/0Default next hop 10.1.0.254

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.

04 / CROSSING VLAN BOUNDARIES

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.

FINANCE / VLAN 10Client 10.50.10.11Gateway 10.50.10.1 · Vlan10
LAYER 3 GATEWAYRoute between SVIsCheck routes, ACL and forwarding state
SERVERS / VLAN 2010.50.20.25Server gateway and return 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.

05 / DYNAMIC ROUTING, NOT AUTOMATIC SUCCESS

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.

01Neighbor discovery

Compatible peers discover each other through OSPF Hello traffic. A neighbor state such as FULL depends on interface/network type and the adjacency context.

02Link-state synchronization

Adjacent routers synchronize relevant LSDB information. A FULL adjacency doesn't automatically mean every network you expected is advertised.

03SPF and route installation

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.

What about areas?

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.

06 / TRANSLATE THE SOURCE, KEEP THE POLICY

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.

BEFORE / INSIDE10.50.10.11:53012→ 203.0.113.20:443
AFTER / OUTSIDE198.51.100.10:41002→ 203.0.113.20:443

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.

07 / SERVICES ACROSS THE ROUTER

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.

CLIENT / VLAN 30DHCPDISCOVERBroadcast within 10.50.30.0/24
RELAY / VLAN 30 SVIgiaddr 10.50.30.1Forward to 10.50.20.53
DHCP SERVERChoose eligible scopeReturn response via relay

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.

08 / INTERACTIVE / ROUTE DECISION

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.

INTERACTIVE / RIB & FORWARDING

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.

No live routing changes

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.

SourceInstalled prefixAD / metricNext hopSelected path?
O10.70.20.128/25More-specific installed OSPF subnet110 / 3510.1.0.3Most specific
C10.50.10.0/24Finance client subnet0 / 0Direct · Vlan10—
C10.50.20.0/24Server subnet0 / 0Direct · Vlan20—
C10.1.0.0/24Campus transit0 / 0Direct · Gi0/0—
S10.70.20.0/24Static source wins for this exact /241 / 010.1.0.4Also matches
O10.70.0.0/16Remote branch aggregate110 / 4010.1.0.2Also matches
S*0.0.0.0/0Fallback route1 / 010.1.0.254Also matches
Forwarding choice: 10.70.20.128/25

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.

Why the /24 OSPF candidate isn't shown as installed

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.

09 / FOUR ROUTING INCIDENTS

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.

PHASE 03 / ROUTING INCIDENT BOARD

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.

Read-only simulation
INCIDENT / OSPF NEIGHBOR

SW-CORE can reach the OSPF neighbor interface, but a branch /24 has disappeared from its routing table.

DECISION 1 OF 3

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

Does a FULL OSPF neighbor prove that every expected route is installed?
0 of 3 correct
10 / DIAGNOSTIC AND CHANGE DISCIPLINE

Gather enough evidence to justify the next action.

01 / PREFIX

Is there a specific installed route?

Check destination/prefix, selected next hop and exit interface. A default route can mask a missing specific entry.

02 / FIRST HOP

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.

03 / SECURITY

Is forwarding permitted?

Consider routing policy, ACLs, stateful session tracking, NAT and device-specific forwarding behavior. Avoid removing safeguards as a shortcut.

04 / RETURN

How does traffic find its way back?

Inspect reverse routes, asymmetric stateful inspection and the intended source IP after any translation.

05 / SERVICE

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 route

View installed routes and their sources; distinguish the RIB from learned-but-not-installed candidates.

show ip route 10.70.20.180

Inspect the selected path toward a specific destination on supported Cisco IOS/IOS XE devices.

show ip ospf neighbor

Check neighbor state and interface; adjacency does not guarantee every network is advertised.

show ip ospf database

Compare link-state information when the expected OSPF route is absent.

show ip nat translations

Look for the expected address/port mapping. A mapping alone does not confirm the return path.

show ip nat statistics

Check interface roles, hit counters and translation pool behavior where supported.

show running-config interface vlan 30

Inspect the SVI and configured IPv4 DHCP relay target within approved read access.

traceroute 10.70.20.180

Collect hop-by-hop observations, recognizing filtering and asymmetric routes may hide replies.

Change management is part of engineering.

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.

11 / PUT THE THEORY TO WORK

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.

AFTER THE LESSON / PRACTICE & LAB

Finish the routing lesson and workbenches first. Then diagnose new routing and service evidence in Applied Practice.

CONTINUE YOUR LEARNING PATH · APPLIED NETWORK ENGINEERING

Complete the Practice milestone

You've reached the end of this written lesson. Your next step is practice: Routing & Services Diagnosis Practice. Complete that milestone before moving to the following lesson. You can revisit the explanation whenever you need it. Next: milestone 7 of 10.

Your completion marks are saved in this browser only.