IP Routing · Topic 2 of 4
Static Routing Troubleshooting
Troubleshoot IPv4 and IPv6 static routes: default, network, host and floating static routes, why a route is missing from the table, and how to read ping failures.
- 6 min
- Includes a diagram
- A static route has an AD of 1 by default.
- A default route is
0.0.0.0 0.0.0.0in IPv4 and::/0in IPv6. - A host route is a /32 in IPv4 or a /128 in IPv6.
What it is
A static route is a route that an administrator types in by hand. It does not change unless someone changes it.
It is simple and predictable, but it does not react to failures by itself.
The default administrative distance of a static route is 1, so it beats every dynamic protocol unless you change the number.
How it works
You give the router a destination and a way to reach it. The router installs the route only if that way is usable.
IPv4 syntax
ip route DESTINATION MASK NEXT-HOP
ip route DESTINATION MASK EXIT-INTERFACE
ip route DESTINATION MASK EXIT-INTERFACE NEXT-HOP
ip route DESTINATION MASK NEXT-HOP DISTANCE
On Ethernet links, give the next hop address, or the interface and the next hop. An exit interface alone makes the router ARP for every destination it forwards. On a point to point serial link, the exit interface alone is common.
The four types

| Type | Example | Use |
|---|---|---|
| Network route | ip route 192.168.20.0 255.255.255.0 10.1.1.2 | Reach one remote network |
| Default route | ip route 0.0.0.0 0.0.0.0 203.0.113.2 | Send everything else to one next hop |
| Host route | ip route 10.9.9.9 255.255.255.255 10.1.1.2 | Reach one specific host |
| Floating static | ip route 0.0.0.0 0.0.0.0 198.51.100.2 200 | Backup with a higher distance |
- Network route: the mask must match the destination subnet.
- Default route: zeros for destination and mask match any address. It shows as
S*in the table. - Host route: a /32 mask matches one address. It is the longest possible prefix, so it wins over broader routes.
- Floating static route: a static route with a deliberately higher AD, so it stays out of the table while a better route exists.
Suppose the main path is learned by OSPF (AD 110) and the floating static route has AD 200.
A floating static route needs an AD higher than the route it backs up. If the number is lower, it replaces the main route instead of waiting.
IPv6 syntax
IPv6 routing must be enabled first, and routes use a prefix length:
ipv6 unicast-routing
ipv6 route 2001:db8:20::/64 2001:db8:12::2
ipv6 route ::/0 2001:db8:12::2
ipv6 route 2001:db8:99::1/128 2001:db8:12::2
ipv6 route ::/0 2001:db8:13::2 200
These are a network route, a default route (::/0), a host route (/128) and a floating static route.
If the next hop is a link-local address, name the exit interface too, because the same link-local prefix exists on every link:
ipv6 route 2001:db8:20::/64 GigabitEthernet0/0 FE80::2
When a static route is installed
A static route enters the table only if the router can use it.
The next hop must be reachable through a route the router already has, usually a connected network. If the exit interface is down, the route is removed.
Troubleshooting step by step
Work from the router outward.
Step 1: is the route installed?
R1# show ip route static
S 192.168.20.0/24 [1/0] via 10.1.1.2
If nothing is listed, compare with what was typed:
R1# show running-config | include ip route
ip route 192.168.20.0 255.255.255.0 10.1.1.9
The route was typed but is not installed, because the next hop 10.1.1.9 is not reachable. For IPv6, use show ipv6 route static.
Step 2: is it the route you expect? A wrong mask changes the range covered, and a /16 typed instead of a /24 can send other traffic the wrong way. Use show ip route ADDRESS to see the route a destination really uses. The longest prefix wins.
Step 3: test the path.
R1# ping 192.168.20.1
.....
Success rate is 0 percent (0/5)
R1# traceroute 192.168.20.1
1 10.1.1.2 4 msec 3 msec 4 msec
2 * * *
A ping shows ! for a reply, . for a timeout and U for an ICMP unreachable. Here the first hop answers and the trace dies at hop 2. The fault is at or beyond R2: R2 may have no route onward, or no route back to R1.
Traffic needs a return path. If the remote router has no route back to the sender, the ping fails even though the forward route is perfect. Always check both directions.
Reading a floating static route in the table
While the main route exists, the floating route is hidden. After the main route fails, it appears with its higher distance:
S* 0.0.0.0/0 [200/0] via 198.51.100.2
[200/0] tells you the backup is active. A backup showing [1/0] means the distance number was forgotten.
Common mistakes
These five errors are the usual ones.
Setting the floating distance too low. The floating route becomes the main route.
Using a wrong mask. The route covers the wrong range of addresses.
Forgetting the return route. The remote network must also know how to get back.
Pointing at an unreachable next hop. The route stays out of the table and you see nothing.
Forgetting ipv6 unicast-routing. IPv6 routes can be typed in, but the router does not forward IPv6 traffic.
What to remember for the exam
Eight facts cover static routing.
- A static route has an AD of 1 by default.
- A default route is
0.0.0.0 0.0.0.0in IPv4 and::/0in IPv6. - A host route is a /32 in IPv4 or a /128 in IPv6.
- A floating static route has a higher AD, so it acts as a backup.
- IPv6 static routing needs
ipv6 unicast-routing. - A link-local next hop also needs the exit interface.
- A route is not installed if its next hop or interface is unreachable.
- Routing must work in both directions.
Check yourself
Work through these three prompts.
Which type of static route suits a single server, a backup link and the internet?
A host route for a single server, a floating static route for a backup link and a default route for the internet.
A static route is in the running configuration but missing from
show ip route. What is the likely cause?The next hop is not reachable, for example it is not on a connected network, or the exit interface is down, so the router does not install the route.
A ping to a remote network fails although the forward route is correct. What else do you check?
Whether the remote router has a route back to the sender, because traffic needs a return path.
Topic 2 of 4 in IP Routing
Test yourself on IP Routing
The full Cisco CCNA 200-301 v2.0 question bank has 1,242 questions, with timed practice exams and an explanation for every answer.
This study guide is independent and is not affiliated with, endorsed by, or sponsored by Cisco. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.