Solved

Cisco OSPF distance command issues!

Posted on 2009-04-13
4
786 Views
Last Modified: 2012-05-06
I am running a single DMVPN with dual hubs.... everythign works except the fact that I am trying to get the spoke routers to prefer one hub over the using the "distance 111 192.168.0.1 0.0.0.0 53"   from what I understand this command is supposed to change the adminstrative distance for routes in the access-list 53 where the "via" is 192.168.0.1 to 111... but this is not working for me the AD is not being changed can anybody please give me a description of how this command works...?

Google searches turn a lot of contradictions...
0
Comment
Question by:justinl525
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:cosmicfox
ID: 24133462
Why are you trying to change the AD, you could just change the OSPF cost on the link. with "ip ospf 1 cost" command.
0
 
LVL 1

Author Comment

by:justinl525
ID: 24140806
That will cause both of the route's metrics to  change and I only want 1 of the routes metrics to change... both of the next hop routers to the subnet in question are reachable via the same interface (in this case a Tunnel interface). So, I change the tun0 interface's ospf cost it will apply to both route's and I will be right back to where I was.  2 routes and the router load balancing them...
I went ahead and opened a ticket with Cisco also and so far they are able to recreate the problem but dont know for sure why it is happening....
0
 
LVL 6

Accepted Solution

by:
cosmicfox earned 500 total points
ID: 24141418
The ospf cost could be done on your hub router. That would affect all of the spoke routers that use that hub.
0
 
LVL 1

Author Closing Comment

by:justinl525
ID: 31570221
Dude!!! you are right.... sorry man! my brain got freakin stuck because the powers that be, I think, (sobbing and in the fetal position) are trying to see if they can kill a man with more projects than he can handle :-(
I got stuck on thinking only relative to the spoke....

I later decided that it could be done for the interfaces on the hub that were connected to the prefixes that I wanted to modify and it worked like a charm.

I used the   ip ospf cost 10 command on the interface that are on the secondary hub connected to the subnets in question so  that the ospf metric would be higher for the router and therefore the spokes would not prefer it as the next hop.

Just so anyone reading knows... The distance [AD] [neighbor] [mask] [acl]
is a valid command for this scenario however Cisco has confirmed that there is a bug in this command for this particular scenario:

CSCsk29338
Conditions:
When two equal cost routes to the same prefix are learned from different neighbors, the distance command may not take work for certain neighbors.

Workaround:
Symptom:
OSPF distance command does not take effect for certain neighbors.
Seen on

Conditions:
When two equal cost routes to the same prefix are learned from different neighbors, the distance command may not take work for certain neighbors.

Work around is to use ip ospf cost.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

749 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