Course contents

Chapter 8: RoutingLesson 15 of 16

Troubleshooting routing

A step-by-step way to find missing routes, wrong next hops and one-way traffic.

Intermediate · 8 min read

Technical definition

Routing troubleshooting is the methodical process of finding why packets do not reach a destination network, by following the packet hop by hop in both directions and checking at each router that a route to the destination exists, is the one actually chosen and points to the correct next hop.

PC1 can't reach the server after last night's change

A ticket comes in: "PC1 can't reach the server at 192.168.3.10". A colleague added routes last night. R1 has a route to the server LAN, so the routing "looks fine". You need a method that finds the real break instead of guessing.

Follow the packet there and back

Follow the packet the way it really travels: from the sender, one router at a time, then back again. At each router, ask one question: "does this router have a route for the destination, and does it point the right way?"

Diagram
Use the observation to choose the next check
Use the observation to choose the next check
Use the observation to choose the next checkStart by checking host addressing and gateway, then look up the destination on each forward router. If the request arrives, inspect return routes to the original sender. Traceroute silence alone cannot prove the dropping router because ICMP replies may be filtered or missing return routes.Start: check host IP, mask and gatewayForward path: show ip route 192.168.3.10Does the requestreach the server?No / uncertainYesInspect links, VLANs, next hopsand policy along the forward path.Check routes to 192.168.1.10along the return path, then policy.
A diagnostic sequence, not automatic fault detection. Traceroute probes and ICMP responses may be filtered or rate-limited; corroborate observations with interface and route evidence.
Diagram
Request gets through, reply is lost at R3
Request gets through, reply is lost at R3
192.168.1.0/24203.0.113.0/3010.0.12.0/3010.0.23.0/30192.168.2.0/24192.168.3.0/24PC1IP 192.168.1.10ISPIP 203.0.113.1R1R2R3PC2IP 192.168.2.10ServerIP 192.168.3.10

Device key: PC1, PC2 (computer) · ISP (network / service) · R1, R2, R3 (router)

Lines show the example’s network connections. Thick links: uplinks/WAN, as labelled. The coloured path and envelope follow the current step; its text identifies the sender, receiver and traffic type.

Reading the addresses

IP labels identify interfaces or destinations. Subnet labels identify networks; /n is the prefix length. A router ID (RID) identifies a routing process and need not be a reachable interface.

An IP address alone is not a URL. A web URL includes a scheme such as https://; an address on a router or printer does not imply a website.

  • PC1: IP 192.168.1.10
  • ISP: IP 203.0.113.1
  • PC2: IP 192.168.2.10
  • Server: IP 192.168.3.10
  1. 1. The request arrives. R1 and R2 both have routes toward 192.168.3.0/24, so the server receives the ping.
  2. 2. The reply dies at R3. R3 has no route to 192.168.1.0/24 and no default route. It drops the packet.
  3. 3. One-way traffic: from PC1 it looks like the server is down. Only checking the return path shows the real cause.

Why one-way failures are so common

Diagram
The reply is a new packet with a different destination
The reply is a new packet with a different destination
The reply is a new packet with a different destinationAn ICMP request has source PC1 192.168.1.10 and destination server 192.168.3.10. Its reply reverses these IP addresses. R3 must look up 192.168.1.10; a route towards 192.168.3.10 does not supply that return route.PC1ServerRequest: 192.168.1.10 → 192.168.3.10Reply: 192.168.3.10 → 192.168.1.10R3 needs a route to 192.168.1.10 for the reply.
The same routing course lab, without NAT. Both directions need routes and permitting policy. Ping failures can also reflect ICMP filtering or endpoint behaviour.
Diagram
Why one-way failures are so common
Why one-way failures are so common
SymptomLikely causeCheck with
PC can't ping its own gatewayWrong IP, mask or VLAN on the PC, or the router interface is downipconfig, show ip interface brief
Traceroute stops at hop 1No ICMP reply: inspect forwarding, return routes and ICMP filteringshow ip route <dest> on that router
Request arrives but no replyMissing return route somewhere on the way backshow ip route <source> on each router back
Traceroute repeats two routersRouting loop: each points to the otherCompare both routers' next hops
Static route missing from the tableNext hop unreachable or exit interface downshow running-config | include ip route
Read each row across: the left box names the item, the others describe it.

When a ticket says routes were added recently, treat that as a hint about where to look. A change written with only the path there in mind often leaves out the routers on the way back.

Hop by hop to the missing route

Start with traceroute from R1, sourced from the LAN interface so the replies are addressed to LAN 1, just like PC1's. These outputs are based on Cisco documentation, not run on a lab device.

Example output · based on Cisco documentation; exact format varies by platform and software version
R1#traceroute 192.168.3.10 source GigabitEthernet0/0
Type escape sequence to abort.
Tracing the route to 192.168.3.10
VRF info: (vrf in name/id, vrf out name/id)
  1 10.0.12.2 1 msec 0 msec 1 msec
  2  *  *  *
  3  *  *  *
  4  *  *  *
R2 answers, R3 doesn't. Either R2 can't send the packet to R3, or R3 can't send its reply back. Check both.
Example output · based on Cisco documentation; exact format varies by platform and software version
R2#show ip route 192.168.3.10
Routing entry for 192.168.3.0/24
  Known via "static", distance 1, metric 0
  Routing Descriptor Blocks:
  * 10.0.23.2
      Route metric is 0, traffic share count is 1
R2 is fine: it points to R3. Now check the way back on R3.
Example output · based on Cisco documentation; exact format varies by platform and software version
R3#show ip route 192.168.1.10
% Network not in table
Found it. R3 has no route to LAN 1 (and show ip route confirms "Gateway of last resort is not set").

The fix below is based on Cisco IOS / IOS XE documentation, not run on a lab device.

ip route 0.0.0.0 0.0.0.0 10.0.23.1

On R3: a default route toward R2 covers LAN 1 and every other remote network. Run the traceroute again; hop 2 should now be 10.0.23.2.

Test yourself on routing faults

Predict · scenario 1

Traceroute shows 10.0.12.1, 10.0.12.2, 10.0.12.1, 10.0.12.2… What is wrong?

Predict · scenario 2

R1 has a correct route to the server LAN, but pings from PC1 fail. What should you check next?

Predict · scenario 3

A static route is in the running configuration but not in show ip route. Why?

Cisco reference: Route installation, administrative distance and forwarding.