Study FAQ
Why is a configured Cisco static route absent from the routing table or failing to carry traffic?
Also asked as 2
- How can I troubleshoot a static route that is configured but missing or unusable?
- What should I check when a Cisco static route is in the config but traffic still fails?
Answer
First find out whether the static route is absent from the routing table or installed but failing to carry the test traffic. An absent route calls for checking eligibility and route preference. An installed route calls for checking the exact destination match, the actual next hop, and the packet's return path.
- On Cisco IOS XE 17.15.x for Catalyst 9300, use
show ip routeorshow ipv6 routewith the destination address to see the selected match. Separately inspect the exact configured prefix and mask or prefix length in the full table. A more-specific route can win the destination lookup while the static prefix remains installed. If the exact static prefix is absent, check the configured mask or prefix length and which source supplies that prefix. - If the static route is absent, verify that its outgoing interface is operational and that the specified next hop resolves through a usable route.
show ipv6 static detailcan show whether a configured IPv6 static route is installed or explain its invalid state. - If the intended route is selected, check whether the outgoing link can resolve the immediate neighbor using ARP for IPv4 or Neighbor Discovery for IPv6. Check the reverse route and intervening policy with a test from the original source.
These checks distinguish a routing-table problem from a forwarding or return-path failure. Use the destination and source from the failing flow when you retest.
References
Full explanation
Routing Tables, Forwarding Decisions, and Static Routes
Study guide · 200-301
Read the full explanation