Cisco: Default static routes with different administrative distances

Posted on 2014-11-23
Medium Priority
Last Modified: 2015-01-02
I have a Cisco router that has two default routes configured:
ip route 250
ip route 254

The question I have is why is the default route with a AD of 250 showing up in the routing table when it seems that the other default with the AD of 254 should show up in the routing table to be used as the default route?

Here is a copy of the show ip route display:
R3# sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is to network

S* [250/0] via is variably subnetted, 8 subnets, 2 masks
S [1/0] via
C is directly connected, Loopback0
C is directly connected, Serial4/0
L is directly connected, Serial4/0
C is directly connected, Ethernet0/0
L is directly connected, Ethernet0/0
C is directly connected, Ethernet0/1
L is directly connected, Ethernet0/1 is variably subnetted, 2 subnets, 2 masks
C is directly connected, Tunnel23
L is directly connected, Tunnel23 is variably subnetted, 2 subnets, 2 masks
C is directly connected, Tunnel0
L is directly connected, Tunnel0

Here is a copy of the run config | s route:
R3#sh run | b route
ip route 250
ip route 254
Question by:dsterling
LVL 33

Assisted Solution

by:Predrag Jovic
Predrag Jovic earned 500 total points
ID: 40460829
Other route should not appear.
Lower AD is always preferred if specificity of routes is the same.
Both routes are equally specific so route lower AD won.
LVL 29

Assisted Solution

by:Jan Springer
Jan Springer earned 500 total points
ID: 40460870
the higher the number the greater the distance and thus less preferred.
LVL 10

Assisted Solution

Rafael earned 500 total points
ID: 40461132
I concur as well lower AD is always better.  Here is a great article from Cisco that explains it as well as contains a chart on it with AD Default Distance Value Tables.


LVL 14

Accepted Solution

Otto_N earned 500 total points
ID: 40461655
As the experts above already stated, the lower AD is preferred.

But you might then ask: "Why two static routes, if only one will ever make it into the routing table?"  The answer - In case the first-choice gateway dies.  The only time you'll see the default route via in the routing table, is when you loose visibility to (i.e. if Eth0/1 goes down).  It seems that the router is configured to route via Eth0/1, but if Eth0/1 fails, traffic gets routed via Ser4/0.

Note that the second static route will not activate if only gets removed from the Ethernet segment - this will still leave in the routing table, and the first static route active.  The second static route will only be inserted in the routing table if the subnet disappears from the routing table completely, such as when the interface gets shut, disconnected, or reconfigured with a different IP subnet.

Author Closing Comment

ID: 40527893
Good comment's, I'll keep looking.

Featured Post

We Need Your Input!

WatchGuard is currently running a beta program for our new macOS Host Sensor for our Threat Detection and Response service. We're looking for more macOS users to help provide insight and feedback to help us make the product even better. Please sign up for our beta program today!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Is your computer hacked? learn how to detect and delete malware in your PC
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question