Diagnosing IPv4 Routing and Connectivity Issues for CCNA
IPv4 routing issues usually stem from missing static routes, incorrect next-hop IP addresses, interface down states, or higher administrative distances preventing routes from entering the routing table.
Verifying the Routing Table
The first step in routing diagnostics is checking the routing table using `show ip route`. If a destination network is missing, the router drops the packet. Look for specific routes and the default route (Gateway of Last Resort). If a dynamically learned route is missing, check the routing protocol configuration.
Next-Hop Reachability
For a route (static or dynamic) to be installed in the routing table, its **next-hop IP address** must be reachable. If an interface goes down, the router removes any static routes that rely on that interface or next-hop. Use `ping` to verify connectivity to the next-hop address directly connected to the router.
Administrative Distance Conflicts
Routers use **Administrative Distance (AD)** to choose between multiple paths to the same destination learned from different protocols. A static route (AD 1) will override an OSPF route (AD 110). If you expect traffic to take an OSPF path but a static route exists, the router will prefer the static route. Use `show ip route [destination]` to see route details.
❓ Frequently Asked Questions
What happens if a router doesn't have a route for a packet?
The router drops the packet and sends an ICMP Destination Unreachable message back to the sender.
How do you configure a default static route?
Use the global configuration command: 'ip route 0.0.0.0 0.0.0.0 [next-hop-IP | exit-interface]'.
What is the Administrative Distance of an internal EIGRP route?
The default Administrative Distance for internal EIGRP is 90.